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