#include <bits/stdc++.h>
using namespace std;
int n;
double a[100005];
int b[100005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[i] = floor(a[i]);
    sum += b[i];
  }
  int i = 0;
  while (sum < 0) {
    if (a[i] != b[i]) {
      b[i]++;
      sum++;
    }
    i++;
  }
  for (int i = 0; i < n; i++) {
    cout << b[i] << '\n';
  }
}
