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

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