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