#include <bits/stdc++.h>
using namespace std;
double a[100005];
bool vis[100020];
int b[100005];
int main() {
  int n, ans = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (ceil(a[i]) == floor(a[i])) {
      vis[i] = 1;
    }
    b[i] = ceil(a[i]);
    ans += b[i];
  }
  for (int i = 1; i <= (ans); i++) {
    if (vis[i]) {
      ans++;
      continue;
    }
    b[i] = floor(a[i]);
  }
  for (int i = 1; i <= n; i++) {
    cout << b[i] << endl;
  }
}
