#include using namespace std; using ll=long long; int main() { ll N; cin >> N; cout << (N+1)/2 << endl; return 0; }