#include using namespace std;; int main(){ int L,M=2,N,K; cin >> N; if(N%2==1)cout << N/2+1 << endl; else cout << N/2 << endl; }