#include<bits/stdc++.h>
using namespace std;
int main ()
{
int n; cin>>n;int a[n];
for(int i=0;i<n;i++){
cin>>a[i];}
if(a[i]>0&&i==3)a[i]=a[i]-(a[i]*2);
if(a[i]<0&&i==3)a[i]=a[i]+(a[i]*2);}
cout<<a[i]<<" ";} return o;}
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int n; cin>>n;int a[n];
for(int i=0;i<n;i++){
cin>>a[i];}
for(int i=0;i<n;i++){
if(a[i]>0&&i==3)a[i]=a[i]-(a[i]*2);
if(a[i]<0&&i==3)a[i]=a[i]+(a[i]*2);}
for(int i=0;i<n;i++){
cout<<a[i]<<" ";} return o;}