
import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            }
    }


 }









 import java.util.*; util.* java import java.io.*; io.* java import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            }
    }


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

        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            }
    } main {

        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            } N%2==0 N%2 N 2 0 {
            System.out.println(N/2);

        } System.out.println(N/2) System.out.println System.out System System.out N/2 N 2 {
                System.out.println(N/2+1);
            } System.out.println(N/2+1) System.out.println System.out System System.out N/2+1 N/2 N 2 1 String[] args args public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            }
    }


 } public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            }
    }


 } Main

import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        if(N%2==0)
        {
            System.out.println(N/2);

        }
        else
            {
                System.out.println(N/2+1);
            }
    }


 }










