import java.util.*;

class Main{

    Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());

        if((N & 1) == 1)
        N += 1;
        System.out.println(N/2);
    }

    public static void main(String[] args){
        Main main = new Main();
    }
} import java.util.*; util.* java class Main{

    Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());

        if((N & 1) == 1)
        N += 1;
        System.out.println(N/2);
    }

    public static void main(String[] args){
        Main main = new Main();
    }
} Main Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());

        if((N & 1) == 1)
        N += 1;
        System.out.println(N/2);
    } Main {
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());

        if((N & 1) == 1)
        N += 1;
        System.out.println(N/2);
    } Scanner SC = new Scanner(System.in); SC new Scanner(System.in) int N = Integer.parseInt(SC.next()); N Integer.parseInt(SC.next()) Integer.parseInt Integer SC.next() SC.next SC if((N & 1) == 1)
        N += 1; (N & 1) == 1 (N & 1) N 1 1 N += 1 N 1 System.out.println(N/2) System.out.println System.out System System.out N/2 N 2 public static void main(String[] args){
        Main main = new Main();
    } main {
        Main main = new Main();
    } Main main = new Main(); main new Main() String[] args args
import java.util.*;

class Main{

    Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());

        if((N & 1) == 1)
        N += 1;
        System.out.println(N/2);
    }

    public static void main(String[] args){
        Main main = new Main();
    }
}
