import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int Q=N/2;
        int r=N%2;

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

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

        System.out.println(Q+r);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int Q=N/2;
        int r=N%2;

        System.out.println(Q+r);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int Q=N/2; Q N/2 N 2 int r=N%2; r N%2 N 2 System.out.println(Q+r) System.out.println System.out System System.out Q+r Q r sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int Q=N/2;
        int r=N%2;

        System.out.println(Q+r);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int Q=N/2;
        int r=N%2;

        System.out.println(Q+r);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int Q=N/2;
        int r=N%2;

        System.out.println(Q+r);
        sc.close();
    }
}