import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        int pageNum = 0;

        Scanner scanner = new Scanner(System.in);
        String inputPageNum = scanner.nextLine();
        scanner.close();
        pageNum = Integer.parseInt(inputPageNum);

        int printOutPage = 0;
        if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        }
        System.out.println(printOutPage);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        int pageNum = 0;

        Scanner scanner = new Scanner(System.in);
        String inputPageNum = scanner.nextLine();
        scanner.close();
        pageNum = Integer.parseInt(inputPageNum);

        int printOutPage = 0;
        if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        }
        System.out.println(printOutPage);

    }
} Main public static void main(String[] args) throws Exception {
        int pageNum = 0;

        Scanner scanner = new Scanner(System.in);
        String inputPageNum = scanner.nextLine();
        scanner.close();
        pageNum = Integer.parseInt(inputPageNum);

        int printOutPage = 0;
        if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        }
        System.out.println(printOutPage);

    } main {
        int pageNum = 0;

        Scanner scanner = new Scanner(System.in);
        String inputPageNum = scanner.nextLine();
        scanner.close();
        pageNum = Integer.parseInt(inputPageNum);

        int printOutPage = 0;
        if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        }
        System.out.println(printOutPage);

    } int pageNum = 0; pageNum 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputPageNum = scanner.nextLine(); inputPageNum scanner.nextLine() scanner.nextLine scanner scanner.close() scanner.close scanner pageNum = Integer.parseInt(inputPageNum) pageNum Integer.parseInt(inputPageNum) Integer.parseInt Integer inputPageNum int printOutPage = 0; printOutPage 0 if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        } pageNum % 2 == 0 pageNum % 2 pageNum 2 0 {
            printOutPage = pageNum / 2;
        } printOutPage = pageNum / 2 printOutPage pageNum / 2 pageNum 2 {
            printOutPage = pageNum / 2 + 1;
        } printOutPage = pageNum / 2 + 1 printOutPage pageNum / 2 + 1 pageNum / 2 pageNum 2 1 System.out.println(printOutPage) System.out.println System.out System System.out printOutPage String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        int pageNum = 0;

        Scanner scanner = new Scanner(System.in);
        String inputPageNum = scanner.nextLine();
        scanner.close();
        pageNum = Integer.parseInt(inputPageNum);

        int printOutPage = 0;
        if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        }
        System.out.println(printOutPage);

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        int pageNum = 0;

        Scanner scanner = new Scanner(System.in);
        String inputPageNum = scanner.nextLine();
        scanner.close();
        pageNum = Integer.parseInt(inputPageNum);

        int printOutPage = 0;
        if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        }
        System.out.println(printOutPage);

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        int pageNum = 0;

        Scanner scanner = new Scanner(System.in);
        String inputPageNum = scanner.nextLine();
        scanner.close();
        pageNum = Integer.parseInt(inputPageNum);

        int printOutPage = 0;
        if (pageNum % 2 == 0) {
            printOutPage = pageNum / 2;
        } else {
            printOutPage = pageNum / 2 + 1;
        }
        System.out.println(printOutPage);

    }
}