import java.io.*;
import java.util.*;

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
    
        int N = Integer.parseInt(br.readLine());
        
        if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        }

      }
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
    
        int N = Integer.parseInt(br.readLine());
        
        if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        }

      }
    }
} Main public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
    
        int N = Integer.parseInt(br.readLine());
        
        if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        }

      }
    } main {
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
    
        int N = Integer.parseInt(br.readLine());
        
        if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        }

      }
    } try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
    
        int N = Integer.parseInt(br.readLine());
        
        if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        }

      } {
    
        int N = Integer.parseInt(br.readLine());
        
        if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        }

      } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        } (N % 2) == 0 (N % 2) N 2 0 {
          System.out.println(N/2);
        } System.out.println(N/2) System.out.println System.out System System.out N/2 N 2 {
          System.out.println((N/2) + 1);   
        } System.out.println((N/2) + 1) System.out.println System.out System System.out (N/2) + 1 (N/2) N 2 1 String args[] args
import java.io.*;
import java.util.*;

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
    
        int N = Integer.parseInt(br.readLine());
        
        if((N % 2) == 0){
          System.out.println(N/2);
        }else{
          System.out.println((N/2) + 1);   
        }

      }
    }
}