#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i;
  cin >> n;
  double a[n];
  for (i = 0; i < n; i++) cin >> a[i];
  double r[n];
  double sum = 0;
  for (i = 0; i < n; i++) {
    sum += ceil(a[i]);
    r[i] = 1;
  }
  for (i = 0; i < n; i++) {
    if (sum == 0)
      break;
    else {
      if (ceil(a[i]) != floor(a[i])) {
        sum--;
        r[i] = 0;
      }
    }
  }
  for (i = 0; i < n; i++) {
    if (r[i] == 0)
      cout << int(floor(a[i])) << endl;
    else
      cout << int(ceil(a[i])) << endl;
  }
}
