import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		//BufferedReader br = new BufferedReader(new FileReader(""));
		PrintWriter pw = new PrintWriter("");
		StringTokenizer st;
		
		
		System.out.println((sc.nextInt() + 1) / 2);
		
	}
}