/* 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. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(n/2 + n%2);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(n/2 + n%2);
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(n/2 + n%2);
	} main {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(n/2 + n%2);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc System.out.println(n/2 + n%2) System.out.println System.out System System.out n/2 + n%2 n/2 n 2 n%2 n 2 String[] args args public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(n/2 + n%2);
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(n/2 + n%2);
	}
} Main
/* 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. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(n/2 + n%2);
	}
}
