#include <iostream>
using namespace std;

int main() {
    float num;
    while (cin >> num) {
        int num_int = (int)num;
        if (num - num_int >= 0.5){
            cout << num_int + 1 << endl;
        }
        else cout << num_int << endl;
    }
    return 0;
}