import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();

   int ans = N/2;
   if(N%2==1) ans++;
   System.out.print(ans);
 }
} import java.util.*; util.* java public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();

   int ans = N/2;
   if(N%2==1) ans++;
   System.out.print(ans);
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();

   int ans = N/2;
   if(N%2==1) ans++;
   System.out.print(ans);
 } main {
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();

   int ans = N/2;
   if(N%2==1) ans++;
   System.out.print(ans);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int ans = N/2; ans N/2 N 2 if(N%2==1) ans++; N%2==1 N%2 N 2 1 ans++ ans System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();

   int ans = N/2;
   if(N%2==1) ans++;
   System.out.print(ans);
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();

   int ans = N/2;
   if(N%2==1) ans++;
   System.out.print(ans);
 }
} Main
import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();

   int ans = N/2;
   if(N%2==1) ans++;
   System.out.print(ans);
 }
}