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

public class Main {

	// 
	static BufferedReader br;
	
	public static void main(String[] args) throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		br = new BufferedReader(in);
		int n = ii();
		
		if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		}
		
		
		br.close();
		
	}
	
	static private int ii() throws IOException{
		return Integer.parseInt(br.readLine());
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	// 
	static BufferedReader br;
	
	public static void main(String[] args) throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		br = new BufferedReader(in);
		int n = ii();
		
		if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		}
		
		
		br.close();
		
	}
	
	static private int ii() throws IOException{
		return Integer.parseInt(br.readLine());
	}
} Main // 
	static BufferedReader br; br public static void main(String[] args) throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		br = new BufferedReader(in);
		int n = ii();
		
		if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		}
		
		
		br.close();
		
	} main {
		InputStreamReader in = new InputStreamReader(System.in);
		br = new BufferedReader(in);
		int n = ii();
		
		if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		}
		
		
		br.close();
		
	} InputStreamReader in = new InputStreamReader(System.in); in new InputStreamReader(System.in) br = new BufferedReader(in) br new BufferedReader(in) int n = ii(); n ii() ii if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		} n%2==0 n%2 n 2 0 {
			System.out.println(n/2);
		} System.out.println(n/2) System.out.println System.out System System.out n/2 n 2 {
			System.out.println(n/2+1);
		} System.out.println(n/2+1) System.out.println System.out System System.out n/2+1 n/2 n 2 1 br.close() br.close br String[] args args static private int ii() throws IOException{
		return Integer.parseInt(br.readLine());
	} ii {
		return Integer.parseInt(br.readLine());
	} return Integer.parseInt(br.readLine()); Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br public class Main {

	// 
	static BufferedReader br;
	
	public static void main(String[] args) throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		br = new BufferedReader(in);
		int n = ii();
		
		if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		}
		
		
		br.close();
		
	}
	
	static private int ii() throws IOException{
		return Integer.parseInt(br.readLine());
	}
} public class Main {

	// 
	static BufferedReader br;
	
	public static void main(String[] args) throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		br = new BufferedReader(in);
		int n = ii();
		
		if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		}
		
		
		br.close();
		
	}
	
	static private int ii() throws IOException{
		return Integer.parseInt(br.readLine());
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	// 
	static BufferedReader br;
	
	public static void main(String[] args) throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		br = new BufferedReader(in);
		int n = ii();
		
		if(n%2==0) {
			System.out.println(n/2);
		}else {
			System.out.println(n/2+1);
		}
		
		
		br.close();
		
	}
	
	static private int ii() throws IOException{
		return Integer.parseInt(br.readLine());
	}
}
