#import<iostream>;
using namespace std;
int main(){
    double a,e;
    int b,c,d;
    cin >>a;
    d=int(a);
    e=a-d;
    if ( a>=0){
        if (e>=0.50){
        b=1+d;
        cout<<b;}
        else {
        c=d;
        cout<<c;}}
    else{if (-e>=0.50){
        b=-1+d;
        cout<<b;}
        else {
        c=d;
        cout<<c;}} 
}