import java.util.*;
 
public class Main {
	public static void main(String[] args) {
      	int res = 0;
		Scanner sc = new Scanner(System.in);
		String input_line = sc.nextLine();
        int num = Integer.parseInt(input_line);
      
        if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        }
        System.out.println(res);
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
      	int res = 0;
		Scanner sc = new Scanner(System.in);
		String input_line = sc.nextLine();
        int num = Integer.parseInt(input_line);
      
        if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        }
        System.out.println(res);
    }
} Main public static void main(String[] args) {
      	int res = 0;
		Scanner sc = new Scanner(System.in);
		String input_line = sc.nextLine();
        int num = Integer.parseInt(input_line);
      
        if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        }
        System.out.println(res);
    } main {
      	int res = 0;
		Scanner sc = new Scanner(System.in);
		String input_line = sc.nextLine();
        int num = Integer.parseInt(input_line);
      
        if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        }
        System.out.println(res);
    } int res = 0; res 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input_line = sc.nextLine(); input_line sc.nextLine() sc.nextLine sc int num = Integer.parseInt(input_line); num Integer.parseInt(input_line) Integer.parseInt Integer input_line if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        } num ==1 num 1 {
          res = 1;
        } res = 1 res 1 if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        } num % 2 == 0 num % 2 num 2 0 {
          res = num / 2;
        } res = num / 2 res num / 2 num 2 {
          res = (int)num / 2 + 1;
        } res = (int)num / 2 + 1 res (int)num / 2 + 1 (int)num / 2 (int)num 2 1 System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
	public static void main(String[] args) {
      	int res = 0;
		Scanner sc = new Scanner(System.in);
		String input_line = sc.nextLine();
        int num = Integer.parseInt(input_line);
      
        if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        }
        System.out.println(res);
    }
} public class Main {
	public static void main(String[] args) {
      	int res = 0;
		Scanner sc = new Scanner(System.in);
		String input_line = sc.nextLine();
        int num = Integer.parseInt(input_line);
      
        if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        }
        System.out.println(res);
    }
} Main
import java.util.*;
 
public class Main {
	public static void main(String[] args) {
      	int res = 0;
		Scanner sc = new Scanner(System.in);
		String input_line = sc.nextLine();
        int num = Integer.parseInt(input_line);
      
        if(num ==1){
          res = 1;
        }
        else if(num % 2 == 0){
          res = num / 2;
        }
        else{
          res = (int)num / 2 + 1;
        }
        System.out.println(res);
    }
}