#include <bits/stdc++.h>
using namespace std;
struct re {
  int x, y;
};
const int inf = 1e9 + 10;
const int N = 1e5 + 10;
const double esp = 1e-6;
int n, b[N];
long long s;
double a[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    b[i] = floor(a[i]);
    s += b[i];
  }
  if (s)
    for (int i = 1; i <= n; ++i)
      if (a[i] - (double)b[i] > esp) {
        ++s;
        ++b[i];
        if (s == 0) break;
      }
  for (int i = 1; i <= n; ++i) cout << b[i] << endl;
  return 0;
}
