#include <iostream> using namespace std; int main() { double d; cin >> d; if(d > 0) cout<<(int)(d+0.5); else cout<<(int)(d-0.5); return 0; }