#include <bits/stdc++.h>
#define Keep_calmYou_are_still_learning ios_base::sync_with_stdio(false);cin.tie(NULL);//freopen("out.txt","w",stdout);
typedef long long ll;
typedef long double ld;
using namespace std;


int main()
{
    Keep_calmYou_are_still_learning;

    int n;
    cin>>n;
    cout<<(n+1)/2<<'\n';

    return 0;
}
