#include <bits/stdc++.h>
using namespace std;
 
int main(){
  
  int N;
  cin >> N >> endl;
  int ans = 0;
  
  if(N % 2 == 1){
   ans = (N-1)/2 + 1;
    cout << ans << endl;
  }else{
    ans = N/2;
    cout << ans << endl;
  }
  
  
}