#include <bits/stdc++.h>
using namespace std;
int main() {
  int(n);
  scanf("%d", &(n));
  int val[100001][2];
  double arr[100001];
  for (int i = 1; i <= n; i++) cin >> arr[i];
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    int t = arr[i];
    if (arr[i] - t != 0) {
      if (t > 0) {
        val[i][0] = t;
        val[i][1] = t + 1;
      }
      if (t < 0) {
        val[i][0] = t - 1;
        val[i][1] = t;
      }
      if (t == 0) {
        if (arr[i] > 0) {
          val[i][0] = 0;
          val[i][1] = 1;
        }
        if (arr[i] < 0) {
          val[i][0] = -1;
          val[i][1] = 0;
        }
      }
    } else {
      val[i][0] = t;
      val[i][1] = t;
    }
    sum += val[i][1];
  }
  int k = sum;
  for (int i = 1; i <= n; i++) {
    if (k > 0 && val[i][0] != val[i][1]) {
      cout << val[i][0] << "\n";
      k--;
    } else
      cout << val[i][1] << "\n";
  }
  return 0;
}
