import java.lang.reflect.Array;
import java.util.*;
import java.io.*;
import java.lang.*;

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

        int r = sc.nextInt();

        if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1);
    }
} import java.lang.reflect.Array; Array java.lang.reflect import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int r = sc.nextInt();

        if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int r = sc.nextInt();

        if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1);
    } main {
        Scanner sc = new Scanner(System.in);

        int r = sc.nextInt();

        if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int r = sc.nextInt(); r sc.nextInt() sc.nextInt sc if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1); r%2 == 0 r%2 r 2 0 System.out.println(r/2) System.out.println System.out System System.out r/2 r 2 System.out.println((r/2)+1) System.out.println System.out System System.out (r/2)+1 (r/2) r 2 1 String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int r = sc.nextInt();

        if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int r = sc.nextInt();

        if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1);
    }
} Main
import java.lang.reflect.Array;
import java.util.*;
import java.io.*;
import java.lang.*;

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

        int r = sc.nextInt();

        if (r%2 == 0)
            System.out.println(r/2);
        else
            System.out.println((r/2)+1);
    }
}
