#include <bits/stdc++.h>
using namespace std;
template <class c>
struct rge {
  c b, e;
};
template <class c>
rge<c> range(c i, c j) {
  return rge<c>{i, j};
}
template <class c>
auto dud(c* x) -> decltype(cerr << *x, 0);
template <class c>
char dud(...);
struct debug {
  template <class c>
  debug& operator<<(const c&) {
    return *this;
  }
};
void solve() {
  int n;
  cin >> n;
  vector<int> ans(n);
  vector<double> a(n);
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    ans[i] = floor(a[i]);
    sum += ans[i];
  }
  int idx = 0;
  while (sum != 0) {
    if (ceil(a[idx]) == floor(a[idx])) {
      idx++;
      continue;
    }
    ans[idx]++;
    sum++;
    idx++;
  }
  for (int x : ans) {
    cout << x << "\n";
  }
}
int main() {
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
