import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.io.BufferedOutputStream;
import java.util.function.LongPredicate;
import java.util.function.Predicate;
import java.util.List;
import java.io.*;
import java.util.*;
import java.io.PrintWriter;

public class Main {
    public static void main(final String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int n = scanner.nextInt();
    	System.out.println((n+1)/2);

    }
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.io.BufferedOutputStream; BufferedOutputStream java.io import java.util.function.LongPredicate; LongPredicate java.util.function import java.util.function.Predicate; Predicate java.util.function import java.util.List; List java.util import java.io.*; io.* java import java.util.*; util.* java import java.io.PrintWriter; PrintWriter java.io public class Main {
    public static void main(final String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int n = scanner.nextInt();
    	System.out.println((n+1)/2);

    }
} Main public static void main(final String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int n = scanner.nextInt();
    	System.out.println((n+1)/2);

    } main {
    	Scanner scanner = new Scanner(System.in);
    	int n = scanner.nextInt();
    	System.out.println((n+1)/2);

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner System.out.println((n+1)/2) System.out.println System.out System System.out (n+1)/2 (n+1) n 1 2 final String[] args args public class Main {
    public static void main(final String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int n = scanner.nextInt();
    	System.out.println((n+1)/2);

    }
} public class Main {
    public static void main(final String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int n = scanner.nextInt();
    	System.out.println((n+1)/2);

    }
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.io.BufferedOutputStream;
import java.util.function.LongPredicate;
import java.util.function.Predicate;
import java.util.List;
import java.io.*;
import java.util.*;
import java.io.PrintWriter;

public class Main {
    public static void main(final String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int n = scanner.nextInt();
    	System.out.println((n+1)/2);

    }
}
