#include <iostream>
using namespace std;
int main(){
int n,i,r1,r2;
cin>>n;
float t, v[n*2];
for(i=0;i<n;i++){
cin>>t;
if(t<0){
v[i]=0;
i++;
n++;
}
v[i]=t;
}
for(i=0;i<n;i++){
r1 = v[i];
r2 = int(v[i]*100)%100;
if(r2<0)r2=r2*-1;
cout<<r1<<".";
if(r2<10)cout<<"0"<<r2;
else cout<<r2;
cout<<" ";
}
}