#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, k;
  vector<double> vec_orig;
  vector<long long int> vec_int;
  long long int sum = 0;
  vector<bool> vec_flag;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    double num;
    cin >> num;
    long long int num2 = floor(num);
    if ((num2 - num) == 0.0) {
      vec_flag.push_back(false);
    } else {
      vec_flag.push_back(true);
    }
    vec_int.push_back(num2);
    sum += num2;
  }
  long long int index = 0;
  while (sum != 0 && index < n) {
    if (vec_flag[index] == true) {
      vec_int[index] += 1;
      sum += 1;
    }
    index++;
  }
  for (long long int i = 0; i < n; i++) {
    cout << vec_int[i] << endl;
  }
}
