import java.util.Scanner;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
       if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2);
    }
} import java.util.Scanner; Scanner java.util public class Main { //クラス名はMain
    public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
       if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2);
    }
} Main public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
       if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2);
    } main {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
       if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2); N%2 == 1 N%2 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 System.out.println(N/2) System.out.println System.out System System.out N/2 N 2 String[] args args public class Main { //クラス名はMain
    public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
       if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2);
    }
} public class Main { //クラス名はMain
    public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
       if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2);
    }
} Main
import java.util.Scanner;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
       if (N%2 == 1)
            System.out.println(N/2+1);
       else
            System.out.println(N/2);
    }
}