/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        Scanner input = new Scanner(System.in);
        int t = input.nextInt();
        int ans = t/2;
        ans+=t%2;
            System.out.println(ans);
        }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        Scanner input = new Scanner(System.in);
        int t = input.nextInt();
        int ans = t/2;
        ans+=t%2;
            System.out.println(ans);
        }
} Main public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        Scanner input = new Scanner(System.in);
        int t = input.nextInt();
        int ans = t/2;
        ans+=t%2;
            System.out.println(ans);
        } main {
        Scanner sc = new Scanner(System.in);
        Scanner input = new Scanner(System.in);
        int t = input.nextInt();
        int ans = t/2;
        ans+=t%2;
            System.out.println(ans);
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Scanner input = new Scanner(System.in); input new Scanner(System.in) int t = input.nextInt(); t input.nextInt() input.nextInt input int ans = t/2; ans t/2 t 2 ans+=t%2 ans t%2 t 2 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        Scanner input = new Scanner(System.in);
        int t = input.nextInt();
        int ans = t/2;
        ans+=t%2;
            System.out.println(ans);
        }
}