//--- pA ---//
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
	public static void main (String[] args) throws java.lang.Exception {
		new Solution();
	}
}
class Solution {
	Scanner scanner;
	public Solution() {
		scanner = new Scanner(System.in);

		// scanner.nextLine();
		while (scanner.hasNext()) {
			run_case();
		}
	}
	private void run_case() {
		// scanner.nextLine();
		String line = scanner.nextLine();

		int N = Integer.parseInt(line.split("\\s+")[0]);

		int res = (int)Math.ceil(1.0 * N / 2);
		System.out.println(res);
		// int R = Integer.parseInt(line.split("\\s+")[1]);



		return;
	}

	private int[] strToIntArray(String str) {
	    String[] vals = str.split("\\s+");
	    int sz = vals.length;
	    int[] res = new int[sz];
	    for (int i=0; i<sz; i++) {
	        res[i] = Integer.parseInt(vals[i]);
	    }
	    return res;
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main {
	public static void main (String[] args) throws java.lang.Exception {
		new Solution();
	}
} Main public static void main (String[] args) throws java.lang.Exception {
		new Solution();
	} main {
		new Solution();
	} new Solution() String[] args args class Solution {
	Scanner scanner;
	public Solution() {
		scanner = new Scanner(System.in);

		// scanner.nextLine();
		while (scanner.hasNext()) {
			run_case();
		}
	}
	private void run_case() {
		// scanner.nextLine();
		String line = scanner.nextLine();

		int N = Integer.parseInt(line.split("\\s+")[0]);

		int res = (int)Math.ceil(1.0 * N / 2);
		System.out.println(res);
		// int R = Integer.parseInt(line.split("\\s+")[1]);



		return;
	}

	private int[] strToIntArray(String str) {
	    String[] vals = str.split("\\s+");
	    int sz = vals.length;
	    int[] res = new int[sz];
	    for (int i=0; i<sz; i++) {
	        res[i] = Integer.parseInt(vals[i]);
	    }
	    return res;
	}
} Solution Scanner scanner; scanner public Solution() {
		scanner = new Scanner(System.in);

		// scanner.nextLine();
		while (scanner.hasNext()) {
			run_case();
		}
	} Solution {
		scanner = new Scanner(System.in);

		// scanner.nextLine();
		while (scanner.hasNext()) {
			run_case();
		}
	} scanner = new Scanner(System.in) scanner new Scanner(System.in) while (scanner.hasNext()) {
			run_case();
		} scanner.hasNext() scanner.hasNext scanner {
			run_case();
		} run_case() run_case private void run_case() {
		// scanner.nextLine();
		String line = scanner.nextLine();

		int N = Integer.parseInt(line.split("\\s+")[0]);

		int res = (int)Math.ceil(1.0 * N / 2);
		System.out.println(res);
		// int R = Integer.parseInt(line.split("\\s+")[1]);



		return;
	} run_case {
		// scanner.nextLine();
		String line = scanner.nextLine();

		int N = Integer.parseInt(line.split("\\s+")[0]);

		int res = (int)Math.ceil(1.0 * N / 2);
		System.out.println(res);
		// int R = Integer.parseInt(line.split("\\s+")[1]);



		return;
	} String line = scanner.nextLine(); line scanner.nextLine() scanner.nextLine scanner int N = Integer.parseInt(line.split("\\s+")[0]); N Integer.parseInt(line.split("\\s+")[0]) Integer.parseInt Integer line.split("\\s+")[0] line.split("\\s+") line.split line "\\s+" 0 int res = (int)Math.ceil(1.0 * N / 2); res (int)Math.ceil(1.0 * N / 2) Math.ceil Math 1.0 * N / 2 1.0 * N 1.0 N 2 System.out.println(res) System.out.println System.out System System.out res return; private int[] strToIntArray(String str) {
	    String[] vals = str.split("\\s+");
	    int sz = vals.length;
	    int[] res = new int[sz];
	    for (int i=0; i<sz; i++) {
	        res[i] = Integer.parseInt(vals[i]);
	    }
	    return res;
	} strToIntArray {
	    String[] vals = str.split("\\s+");
	    int sz = vals.length;
	    int[] res = new int[sz];
	    for (int i=0; i<sz; i++) {
	        res[i] = Integer.parseInt(vals[i]);
	    }
	    return res;
	} String[] vals = str.split("\\s+"); vals str.split("\\s+") str.split str "\\s+" int sz = vals.length; sz vals.length vals vals.length int[] res = new int[sz]; res new int[sz] sz for (int i=0; i<sz; i++) {
	        res[i] = Integer.parseInt(vals[i]);
	    } int i=0; int i=0; i 0 i<sz i sz i++ i++ i {
	        res[i] = Integer.parseInt(vals[i]);
	    } {
	        res[i] = Integer.parseInt(vals[i]);
	    } res[i] = Integer.parseInt(vals[i]) res[i] res i Integer.parseInt(vals[i]) Integer.parseInt Integer vals[i] vals i return res; res String str str public class Main {
	public static void main (String[] args) throws java.lang.Exception {
		new Solution();
	}
} public class Main {
	public static void main (String[] args) throws java.lang.Exception {
		new Solution();
	}
} Main
//--- pA ---//
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
	public static void main (String[] args) throws java.lang.Exception {
		new Solution();
	}
}
class Solution {
	Scanner scanner;
	public Solution() {
		scanner = new Scanner(System.in);

		// scanner.nextLine();
		while (scanner.hasNext()) {
			run_case();
		}
	}
	private void run_case() {
		// scanner.nextLine();
		String line = scanner.nextLine();

		int N = Integer.parseInt(line.split("\\s+")[0]);

		int res = (int)Math.ceil(1.0 * N / 2);
		System.out.println(res);
		// int R = Integer.parseInt(line.split("\\s+")[1]);



		return;
	}

	private int[] strToIntArray(String str) {
	    String[] vals = str.split("\\s+");
	    int sz = vals.length;
	    int[] res = new int[sz];
	    for (int i=0; i<sz; i++) {
	        res[i] = Integer.parseInt(vals[i]);
	    }
	    return res;
	}
}
