#include <iostream> using namespace std; int main() { float f; cin>>f; int a; a=int(f); if (f-float(a) >= 0.5 ){ cout<<a+1<<endl; } else if (f-float(a) <= -0.5){ cout<<a-1<<endl; } else { cout<<a<<endl; } } // 64 位输出请用 printf("%lld")