#include<iostream>
using namespace std;
int main()
{
    double d;
    while(cin>>d)
    {
        printf("%d\n",(int)(d+0.5));
    }
    return 0;
}