#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<double> a(n);
  list<int> ind;
  int sum = 0;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    int k = a[i];
    if (a[i] - k != 0) {
      ind.push_back(i);
    }
    if (a[i] - k < 0) {
      --k;
    }
    a[i] = k;
    sum += k;
  }
  while (sum != 0) {
    int i = ind.front();
    ++a[i];
    ind.pop_front();
    ++sum;
  }
  for (int i = 0; i < n; ++i) {
    cout << a[i] << '\n';
  }
  return 0;
}
