import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){

		solve_abc157_a();
	}
  
  	public static void solve_abc157_a(){

		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		if(N % 2 == 1) N += 1;
		
		int ans = N / 2;
		
		System.out.println(ans);
		
		sc.close();
	}
} import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.HashMap; HashMap java.util import java.util.HashSet; HashSet java.util import java.util.LinkedList; LinkedList java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Queue; Queue java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){

		solve_abc157_a();
	}
  
  	public static void solve_abc157_a(){

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

		solve_abc157_a();
	} main {

		solve_abc157_a();
	} solve_abc157_a() solve_abc157_a String[] args args public static void solve_abc157_a(){

		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		if(N % 2 == 1) N += 1;
		
		int ans = N / 2;
		
		System.out.println(ans);
		
		sc.close();
	} solve_abc157_a {

		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		if(N % 2 == 1) N += 1;
		
		int ans = N / 2;
		
		System.out.println(ans);
		
		sc.close();
	} 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) N += 1; N % 2 == 1 N % 2 N 2 1 N += 1 N 1 int ans = N / 2; ans N / 2 N 2 System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){

		solve_abc157_a();
	}
  
  	public static void solve_abc157_a(){

		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		if(N % 2 == 1) N += 1;
		
		int ans = N / 2;
		
		System.out.println(ans);
		
		sc.close();
	}
} public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){

		solve_abc157_a();
	}
  
  	public static void solve_abc157_a(){

		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		if(N % 2 == 1) N += 1;
		
		int ans = N / 2;
		
		System.out.println(ans);
		
		sc.close();
	}
} Main
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){

		solve_abc157_a();
	}
  
  	public static void solve_abc157_a(){

		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		if(N % 2 == 1) N += 1;
		
		int ans = N / 2;
		
		System.out.println(ans);
		
		sc.close();
	}
}
