import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
 		int m = N/2;
      	int i = N%2;
      if(i==0){

    System.out.println(m);
      }else{
    System.out.println(m + 1);
      }
      }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
 		int m = N/2;
      	int i = N%2;
      if(i==0){

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

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

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

    System.out.println(m);
      }else{
    System.out.println(m + 1);
      } i==0 i 0 {

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

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

    System.out.println(m);
      }else{
    System.out.println(m + 1);
      }
      }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
 		int m = N/2;
      	int i = N%2;
      if(i==0){

    System.out.println(m);
      }else{
    System.out.println(m + 1);
      }
      }
}
