import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        int n;
        try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        }
        int a=n/2;
        int b=n%2;
        
        if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        int n;
        try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        }
        int a=n/2;
        int b=n%2;
        
        if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1);
    }
} Main public static void main(String[] args) {
        int n;
        try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        }
        int a=n/2;
        int b=n%2;
        
        if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1);
    } main {
        int n;
        try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        }
        int a=n/2;
        int b=n%2;
        
        if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1);
    } int n; n try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        } {
            n = sc.nextInt();
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc int a=n/2; a n/2 n 2 int b=n%2; b n%2 n 2 if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1); b==0 b 0 System.out.println(a) System.out.println System.out System System.out a System.out.println(a+1) System.out.println System.out System System.out a+1 a 1 String[] args args public class Main {

    public static void main(String[] args) {
        int n;
        try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        }
        int a=n/2;
        int b=n%2;
        
        if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1);
    }
} public class Main {

    public static void main(String[] args) {
        int n;
        try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        }
        int a=n/2;
        int b=n%2;
        
        if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1);
    }
} Main
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        int n;
        try (Scanner sc = new Scanner(System.in)) {
            n = sc.nextInt();
        }
        int a=n/2;
        int b=n%2;
        
        if(b==0)
            System.out.println(a);
        else
            System.out.println(a+1);
    }
}