import java.util.Scanner;

class Main{

 public static void main(String[] args){

 Scanner scan = new Scanner(System.in);

 int N = scan.nextInt();  
   if (N % 2 == 0){
  int O = N / 2;
     System.out.println(O);
   }
   
   else{
     int P = N / 2 + 1;
   System.out.println(P);
   
   }
   
   
 }
} import java.util.Scanner; Scanner java.util class Main{

 public static void main(String[] args){

 Scanner scan = new Scanner(System.in);

 int N = scan.nextInt();  
   if (N % 2 == 0){
  int O = N / 2;
     System.out.println(O);
   }
   
   else{
     int P = N / 2 + 1;
   System.out.println(P);
   
   }
   
   
 }
} Main public static void main(String[] args){

 Scanner scan = new Scanner(System.in);

 int N = scan.nextInt();  
   if (N % 2 == 0){
  int O = N / 2;
     System.out.println(O);
   }
   
   else{
     int P = N / 2 + 1;
   System.out.println(P);
   
   }
   
   
 } main {

 Scanner scan = new Scanner(System.in);

 int N = scan.nextInt();  
   if (N % 2 == 0){
  int O = N / 2;
     System.out.println(O);
   }
   
   else{
     int P = N / 2 + 1;
   System.out.println(P);
   
   }
   
   
 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan if (N % 2 == 0){
  int O = N / 2;
     System.out.println(O);
   }
   
   else{
     int P = N / 2 + 1;
   System.out.println(P);
   
   } N % 2 == 0 N % 2 N 2 0 {
  int O = N / 2;
     System.out.println(O);
   } int O = N / 2; O N / 2 N 2 System.out.println(O) System.out.println System.out System System.out O {
     int P = N / 2 + 1;
   System.out.println(P);
   
   } int P = N / 2 + 1; P N / 2 + 1 N / 2 N 2 1 System.out.println(P) System.out.println System.out System System.out P String[] args args
import java.util.Scanner;

class Main{

 public static void main(String[] args){

 Scanner scan = new Scanner(System.in);

 int N = scan.nextInt();  
   if (N % 2 == 0){
  int O = N / 2;
     System.out.println(O);
   }
   
   else{
     int P = N / 2 + 1;
   System.out.println(P);
   
   }
   
   
 }
}
