import java.util.Scanner;

public class Main {

  private int a;

  public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int a = 0;

        if(N % 2 == 1){
           a = (N / 2) + 1;
        }else{
          a = (N / 2);
        }
        System.out.print(a);
    }
} import java.util.Scanner; Scanner java.util public class Main {

  private int a;

  public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int a = 0;

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

        int N = sc.nextInt();
        int a = 0;

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

        int N = sc.nextInt();
        int a = 0;

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

  private int a;

  public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int a = 0;

        if(N % 2 == 1){
           a = (N / 2) + 1;
        }else{
          a = (N / 2);
        }
        System.out.print(a);
    }
} public class Main {

  private int a;

  public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int a = 0;

        if(N % 2 == 1){
           a = (N / 2) + 1;
        }else{
          a = (N / 2);
        }
        System.out.print(a);
    }
} Main
import java.util.Scanner;

public class Main {

  private int a;

  public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int a = 0;

        if(N % 2 == 1){
           a = (N / 2) + 1;
        }else{
          a = (N / 2);
        }
        System.out.print(a);
    }
}