public class Main {

    public static void main(String[] args) {
        int page = new Integer(getLine()[0]);
        int ans = page/2;
        if(page % 2 == 1){
            ans += 1;
        }
        System.out.println(ans);
    }

    public static String[] getLine(){
        java.util.Scanner scan = new java.util.Scanner(System.in);
        return scan.nextLine().split(" ");
    }
} public class Main {

    public static void main(String[] args) {
        int page = new Integer(getLine()[0]);
        int ans = page/2;
        if(page % 2 == 1){
            ans += 1;
        }
        System.out.println(ans);
    }

    public static String[] getLine(){
        java.util.Scanner scan = new java.util.Scanner(System.in);
        return scan.nextLine().split(" ");
    }
} Main public static void main(String[] args) {
        int page = new Integer(getLine()[0]);
        int ans = page/2;
        if(page % 2 == 1){
            ans += 1;
        }
        System.out.println(ans);
    } main {
        int page = new Integer(getLine()[0]);
        int ans = page/2;
        if(page % 2 == 1){
            ans += 1;
        }
        System.out.println(ans);
    } int page = new Integer(getLine()[0]); page new Integer(getLine()[0]) int ans = page/2; ans page/2 page 2 if(page % 2 == 1){
            ans += 1;
        } page % 2 == 1 page % 2 page 2 1 {
            ans += 1;
        } ans += 1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public static String[] getLine(){
        java.util.Scanner scan = new java.util.Scanner(System.in);
        return scan.nextLine().split(" ");
    } getLine {
        java.util.Scanner scan = new java.util.Scanner(System.in);
        return scan.nextLine().split(" ");
    } java.util.Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) return scan.nextLine().split(" "); scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " public class Main {

    public static void main(String[] args) {
        int page = new Integer(getLine()[0]);
        int ans = page/2;
        if(page % 2 == 1){
            ans += 1;
        }
        System.out.println(ans);
    }

    public static String[] getLine(){
        java.util.Scanner scan = new java.util.Scanner(System.in);
        return scan.nextLine().split(" ");
    }
} public class Main {

    public static void main(String[] args) {
        int page = new Integer(getLine()[0]);
        int ans = page/2;
        if(page % 2 == 1){
            ans += 1;
        }
        System.out.println(ans);
    }

    public static String[] getLine(){
        java.util.Scanner scan = new java.util.Scanner(System.in);
        return scan.nextLine().split(" ");
    }
} Main
public class Main {

    public static void main(String[] args) {
        int page = new Integer(getLine()[0]);
        int ans = page/2;
        if(page % 2 == 1){
            ans += 1;
        }
        System.out.println(ans);
    }

    public static String[] getLine(){
        java.util.Scanner scan = new java.util.Scanner(System.in);
        return scan.nextLine().split(" ");
    }
}
