#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int n, i;
  double a[100000];
  int b[100000];
  long int sum = 0, cnt = 0;
  long double eps = 0.0000001;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    b[i] = floor(a[i]);
    sum += b[i];
  }
  if (sum != 0) {
    for (i = 0; i < n; i++) {
      if (abs(a[i] - b[i]) < eps) continue;
      b[i] = b[i] + 1;
      sum++;
      if (sum == 0) break;
    }
  }
  for (i = 0; i < n; i++) {
    cout << b[i] << "\n";
  }
  return 0;
}
