import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int kotae=0;int Ancer=0;
        int num = scan.nextInt();
        kotae=num/2;
        if(num%2==0){
            Ancer=kotae;
        }
        if(num%2==1){
            Ancer=kotae+1;
        }
    System.out.println(Ancer);
    }

} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int kotae=0;int Ancer=0;
        int num = scan.nextInt();
        kotae=num/2;
        if(num%2==0){
            Ancer=kotae;
        }
        if(num%2==1){
            Ancer=kotae+1;
        }
    System.out.println(Ancer);
    }

} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int kotae=0;int Ancer=0;
        int num = scan.nextInt();
        kotae=num/2;
        if(num%2==0){
            Ancer=kotae;
        }
        if(num%2==1){
            Ancer=kotae+1;
        }
    System.out.println(Ancer);
    } main {
        Scanner scan = new Scanner(System.in);
        int kotae=0;int Ancer=0;
        int num = scan.nextInt();
        kotae=num/2;
        if(num%2==0){
            Ancer=kotae;
        }
        if(num%2==1){
            Ancer=kotae+1;
        }
    System.out.println(Ancer);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int kotae=0; kotae 0 int Ancer=0; Ancer 0 int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan kotae=num/2 kotae num/2 num 2 if(num%2==0){
            Ancer=kotae;
        } num%2==0 num%2 num 2 0 {
            Ancer=kotae;
        } Ancer=kotae Ancer kotae if(num%2==1){
            Ancer=kotae+1;
        } num%2==1 num%2 num 2 1 {
            Ancer=kotae+1;
        } Ancer=kotae+1 Ancer kotae+1 kotae 1 System.out.println(Ancer) System.out.println System.out System System.out Ancer String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int kotae=0;int Ancer=0;
        int num = scan.nextInt();
        kotae=num/2;
        if(num%2==0){
            Ancer=kotae;
        }
        if(num%2==1){
            Ancer=kotae+1;
        }
    System.out.println(Ancer);
    }

}
