#include <bits/stdc++.h>
using namespace std;
const long long N = 3e5 + 5;
double arr[N];
void print(vector<double>& ret) {
  for (long long x : ret) cout << x << endl;
}
int32_t main() {
  long long n;
  cin >> n;
  vector<double> ret;
  long long sum = 0;
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
    ret.push_back(floor(arr[i]));
    sum += ret[i];
    ret[i] *= 1.00000;
  }
  sum = abs(sum);
  long long idx = 0;
  while (sum--) {
    if (ret[idx] != arr[idx])
      ret[idx]++;
    else
      sum++;
    idx++;
  }
  print(ret);
}
