#include
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
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)
a[i]+=5;
else if(a[i] < 0)
a[i] = abs(a[i]);
}
for(auto i: a)
cout << i << " ";</strong>
}