#include <iostream>
using namespace std;

int main() {
    double i = 0;
    cin>>i;
    if(i>0)
    cout<<(int )(i+0.5)<<endl;
    else
     cout<<(int )(i-0.5)<<endl;;
    return 0;
}
// 64 位输出请用 printf("%lld")