import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //コンソールから入れる際に高速に入れる方法

        String strArr = br.readLine();
        int a = Integer.parseInt(strArr);
        if (a % 2 == 1) {
        	int x = (a/2) + 1;
            System.out.println(x);
        } else {
        	System.out.println(a/2);
        }

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //コンソールから入れる際に高速に入れる方法

        String strArr = br.readLine();
        int a = Integer.parseInt(strArr);
        if (a % 2 == 1) {
        	int x = (a/2) + 1;
            System.out.println(x);
        } else {
        	System.out.println(a/2);
        }

    }
} Main public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //コンソールから入れる際に高速に入れる方法

        String strArr = br.readLine();
        int a = Integer.parseInt(strArr);
        if (a % 2 == 1) {
        	int x = (a/2) + 1;
            System.out.println(x);
        } else {
        	System.out.println(a/2);
        }

    } main {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //コンソールから入れる際に高速に入れる方法

        String strArr = br.readLine();
        int a = Integer.parseInt(strArr);
        if (a % 2 == 1) {
        	int x = (a/2) + 1;
            System.out.println(x);
        } else {
        	System.out.println(a/2);
        }

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strArr = br.readLine(); strArr br.readLine() br.readLine br int a = Integer.parseInt(strArr); a Integer.parseInt(strArr) Integer.parseInt Integer strArr if (a % 2 == 1) {
        	int x = (a/2) + 1;
            System.out.println(x);
        } else {
        	System.out.println(a/2);
        } a % 2 == 1 a % 2 a 2 1 {
        	int x = (a/2) + 1;
            System.out.println(x);
        } int x = (a/2) + 1; x (a/2) + 1 (a/2) a 2 1 System.out.println(x) System.out.println System.out System System.out x {
        	System.out.println(a/2);
        } System.out.println(a/2) System.out.println System.out System System.out a/2 a 2 String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //コンソールから入れる際に高速に入れる方法

        String strArr = br.readLine();
        int a = Integer.parseInt(strArr);
        if (a % 2 == 1) {
        	int x = (a/2) + 1;
            System.out.println(x);
        } else {
        	System.out.println(a/2);
        }

    }
}