#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, s = 0;
  cin >> n;
  double a[n];
  int b[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    b[i] = floor(a[i]);
    s += b[i];
  }
  i = 0;
  while (s != 0 && i < n) {
    if ((a[i] - b[i]) > 1e-6) {
      b[i] += 1;
      s++;
    }
    i++;
  }
  for (i = 0; i < n; i++) {
    cout << b[i] << endl;
  }
}
