#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  double arr[n];
  double temp = 0;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    arr[i] = temp;
  }
  long long sum = 0;
  double fractpart, intpart;
  int arr2[n];
  for (int i = 0; i < n; i++) {
    arr2[i] = ((int)floor(arr[i]));
    sum += arr2[i];
  }
  int count = -sum;
  int total = 0, index = 0;
  while (count != 0) {
    if (arr[index] - floor(arr[index]) < 0.000001) {
      index++;
      continue;
    }
    count--;
    arr2[index]++;
    index++;
  }
  for (int i = 0; i < n; i++) {
    cout << arr2[i] << "\n";
  }
}
