#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 0;
long long n, a, b, cnt, ans, sum, m;
deque<long long> v[N];
map<long long, long long> mp;
void DNM() {
  cin >> n;
  cout << n / 2 + (n % 2 != 0);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int Qu_l_uQ = 1;
  while (Qu_l_uQ--) DNM();
}
