import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main {

	static List<String> values = new ArrayList<>();

	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String l1 = r.readLine();
		int p = Integer.parseInt(l1);

		System.out.println(p / 2 + p % 2);

		r.close();
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util public class Main {

	static List<String> values = new ArrayList<>();

	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String l1 = r.readLine();
		int p = Integer.parseInt(l1);

		System.out.println(p / 2 + p % 2);

		r.close();
	}
} Main static List<String> values = new ArrayList<>(); values new ArrayList<>() public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String l1 = r.readLine();
		int p = Integer.parseInt(l1);

		System.out.println(p / 2 + p % 2);

		r.close();
	} main {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String l1 = r.readLine();
		int p = Integer.parseInt(l1);

		System.out.println(p / 2 + p % 2);

		r.close();
	} BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) String l1 = r.readLine(); l1 r.readLine() r.readLine r int p = Integer.parseInt(l1); p Integer.parseInt(l1) Integer.parseInt Integer l1 System.out.println(p / 2 + p % 2) System.out.println System.out System System.out p / 2 + p % 2 p / 2 p 2 p % 2 p 2 r.close() r.close r String[] args args public class Main {

	static List<String> values = new ArrayList<>();

	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String l1 = r.readLine();
		int p = Integer.parseInt(l1);

		System.out.println(p / 2 + p % 2);

		r.close();
	}
} public class Main {

	static List<String> values = new ArrayList<>();

	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String l1 = r.readLine();
		int p = Integer.parseInt(l1);

		System.out.println(p / 2 + p % 2);

		r.close();
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main {

	static List<String> values = new ArrayList<>();

	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String l1 = r.readLine();
		int p = Integer.parseInt(l1);

		System.out.println(p / 2 + p % 2);

		r.close();
	}
}