import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
	public static void main(final String[] args){
    int sum = 0;
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    if(n % 2 == 1){
        System.out.println((n / 2) + 1);
    }else{
        System.out.println(n / 2);
    }
    
    

        
    
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.*; io.* java import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util import java.util.Collections; Collections java.util public class Main {
	public static void main(final String[] args){
    int sum = 0;
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    if(n % 2 == 1){
        System.out.println((n / 2) + 1);
    }else{
        System.out.println(n / 2);
    }
    
    

        
    
	}
} Main public static void main(final String[] args){
    int sum = 0;
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    if(n % 2 == 1){
        System.out.println((n / 2) + 1);
    }else{
        System.out.println(n / 2);
    }
    
    

        
    
	} main {
    int sum = 0;
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    if(n % 2 == 1){
        System.out.println((n / 2) + 1);
    }else{
        System.out.println(n / 2);
    }
    
    

        
    
	} int sum = 0; sum 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(n % 2 == 1){
        System.out.println((n / 2) + 1);
    }else{
        System.out.println(n / 2);
    } n % 2 == 1 n % 2 n 2 1 {
        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 {
        System.out.println(n / 2);
    } System.out.println(n / 2) System.out.println System.out System System.out n / 2 n 2 final String[] args args public class Main {
	public static void main(final String[] args){
    int sum = 0;
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    if(n % 2 == 1){
        System.out.println((n / 2) + 1);
    }else{
        System.out.println(n / 2);
    }
    
    

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

        
    
	}
} Main
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
	public static void main(final String[] args){
    int sum = 0;
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    if(n % 2 == 1){
        System.out.println((n / 2) + 1);
    }else{
        System.out.println(n / 2);
    }
    
    

        
    
	}
}