import java.util.Scanner;

class Main{
    
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int pages = scanner.nextInt();
        scanner.close();
        int result = pages%2 + pages/2;
        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util class Main{
    
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int pages = scanner.nextInt();
        scanner.close();
        int result = pages%2 + pages/2;
        System.out.println(result);
    }
} Main public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int pages = scanner.nextInt();
        scanner.close();
        int result = pages%2 + pages/2;
        System.out.println(result);
    } main {

        Scanner scanner = new Scanner(System.in);
        int pages = scanner.nextInt();
        scanner.close();
        int result = pages%2 + pages/2;
        System.out.println(result);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int pages = scanner.nextInt(); pages scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner int result = pages%2 + pages/2; result pages%2 + pages/2 pages%2 pages 2 pages/2 pages 2 System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.util.Scanner;

class Main{
    
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int pages = scanner.nextInt();
        scanner.close();
        int result = pages%2 + pages/2;
        System.out.println(result);
    }
}