#include "bits/stdc++.h" using namespace std; using ll = long long; using ld = long double; using P = pair; using vi = vector; using vl = vector; ld EPS = 1e-12; int INF = numeric_limits::max() / 2; ll LINF = numeric_limits::max() / 2; int MOD = 1e9 + 7; #define rep(i,n) for(int i = 0; i < n; i++) #define all(obj) (obj).begin(), (obj).end() #define debug(x) cerr << #x << ": " << x << '\n' int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; cout << (n+1)/2 << endl; return 0; }