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

京公网安备 11010502036488号