#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<double> arr(n);
  vector<long long> b(n);
  long long can = 0;
  long long now = 0;
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
    b[i] = (long long)arr[i];
    if (arr[i] != b[i]) {
      can++;
      if (arr[i] < 0) {
        b[i]--;
      }
    }
    now += b[i];
  }
  for (long long i = 0; i < n; i++) {
    if (now == 0) {
      break;
    }
    if (arr[i] != b[i]) {
      now++;
      b[i]++;
    }
  }
  for (long long i = 0; i < n; i++) {
    cout << b[i] << '\n';
  }
}
