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

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int n = Integer.parseInt(scan.nextLine());
        
        out.println(n % 2 == 0 ? n / 2 : n / 2 + 1);
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int n = Integer.parseInt(scan.nextLine());
        
        out.println(n % 2 == 0 ? n / 2 : n / 2 + 1);
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int n = Integer.parseInt(scan.nextLine());
        
        out.println(n % 2 == 0 ? n / 2 : n / 2 + 1);
        out.close();
        
    } main {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int n = Integer.parseInt(scan.nextLine());
        
        out.println(n % 2 == 0 ? n / 2 : n / 2 + 1);
        out.close();
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) int n = Integer.parseInt(scan.nextLine()); n Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan out.println(n % 2 == 0 ? n / 2 : n / 2 + 1) out.println out 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 out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int n = Integer.parseInt(scan.nextLine());
        
        out.println(n % 2 == 0 ? n / 2 : n / 2 + 1);
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int n = Integer.parseInt(scan.nextLine());
        
        out.println(n % 2 == 0 ? n / 2 : n / 2 + 1);
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int n = Integer.parseInt(scan.nextLine());
        
        out.println(n % 2 == 0 ? n / 2 : n / 2 + 1);
        out.close();
        
    }
}