import java.util.Scanner;

//public class atcoder0221_A{
public class Main{

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

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

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

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

//public class atcoder0221_A{
public class Main{

	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int result = 0;
		//
		result = N/2;
		if(N%2==1)result++;
		System.out.println(result);
	}
}