using System;

class Progarm{
  static void Main(){
    var n = Int32.Parse(Console.ReadLine());
    int ans;
    if(n/2!=0){
      ans = n /2 + 1;
    }else{
      ans = n/2;
    }
    Console.WriteLine(ans);
  }
}