import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int page;
        
        if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        }
        System.out.println(page);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int page;
        
        if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        }
        System.out.println(page);
        
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int page;
        
        if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        }
        System.out.println(page);
        
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int page;
        
        if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        }
        System.out.println(page);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int page; page if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        } N%2 == 0 N%2 N 2 0 {
            page = N/2;
        } page = N/2 page N/2 N 2 {
            page = N/2+1;
        } page = N/2+1 page N/2+1 N/2 N 2 1 System.out.println(page) System.out.println System.out System System.out page String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int page;
        
        if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        }
        System.out.println(page);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int page;
        
        if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        }
        System.out.println(page);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int page;
        
        if(N%2 == 0){
            page = N/2;
        } else {
            page = N/2+1;
        }
        System.out.println(page);
        
    }
}
