#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int balance = 0;
  vector<pair<int, bool>> v;
  for (long long int i = 0; i < (long long int)n; i++) {
    double x;
    cin >> x;
    int num = ceil(x);
    if (x - num == 0)
      v.push_back({num, false});
    else
      v.push_back({num, true});
    balance += num;
  }
  int i = 0;
  while (i < n) {
    int num = v[i].first;
    if (v[i].second && balance) {
      num--;
      balance--;
    }
    cout << num << "\n";
    i++;
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int tests = 1;
  for (long long int test_case = 1; test_case <= tests; test_case++) {
    solve();
  }
  cerr << "Execution Time : " << (float)clock() / CLOCKS_PER_SEC << " secs"
       << endl;
  return 0;
}
