#include <bits/stdc++.h>
using namespace std;
const long double PI = acosl(-1.0);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  long double a[n];
  long long ans[n];
  long long sum = 0;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    ans[i] = floor(a[i]);
    sum += ans[i];
  }
  sum = abs(sum);
  long long i = 0;
  while (sum > 0) {
    if ((long double)ans[i] != a[i]) ans[i]++, sum--;
    i++;
  }
  for (i = 0; i < n; i++) {
    cout << ans[i] << "\n";
  }
  return 0;
}
