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

public class Main {
  
  public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main {
  
  public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
} Main public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  } main {
    
    try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  } try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    } catch (Exception e) {
      
      System.out.println("error");

    } Exception e {
      
      System.out.println("error");

    } System.out.println("error") System.out.println System.out System System.out "error" {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } int page; page int paper; paper Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String  N    = scan.next(); N scan.next() scan.next scan page = Integer.parseInt(N) page Integer.parseInt(N) Integer.parseInt Integer N if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      } page % 2 == 0 page % 2 page 2 0 {
        paper = page/2;
      } paper = page/2 paper page/2 page 2 {
        paper = page/2 + 1;
      } paper = page/2 + 1 paper page/2 + 1 page/2 page 2 1 System.out.println(paper) System.out.println System.out System System.out paper String[] args args public class Main {
  
  public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
} public class Main {
  
  public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
} Main
import java.io.*;
import java.util.Scanner;

public class Main {
  
  public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int page;		//書類のページ
      int paper;	//用紙
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      
      page = Integer.parseInt(N);
      
      //用紙算出
      if (page % 2 == 0) {
        paper = page/2;
      } else {
        paper = page/2 + 1;
      }
      
      System.out.println(paper);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}
