import java.util.*;

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = Integer.parseInt(sc.next());
        int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1;
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = Integer.parseInt(sc.next());
        int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1;
        System.out.println(ans);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        int n = Integer.parseInt(sc.next());
        int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1;
        System.out.println(ans);
    } main {
        int n = Integer.parseInt(sc.next());
        int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1;
        System.out.println(ans);
    } int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1; ans (n % 2 == 0) ? n / 2 : n / 2 + 1 (n % 2 == 0) n % 2 n 2 0 n / 2 n 2 n / 2 + 1 n / 2 n 2 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = Integer.parseInt(sc.next());
        int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1;
        System.out.println(ans);
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = Integer.parseInt(sc.next());
        int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1;
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = Integer.parseInt(sc.next());
        int ans = (n % 2 == 0) ? n / 2 : n / 2 + 1;
        System.out.println(ans);
    }
}