#include<algorithm>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<cstdio>
#include<iomanip>
#include<cmath>

int main(){
    long long N;
    cin >> N;
    
    cout << (N + 1) / 2;
}
