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

public class Main {
	public static void main (String[] args) {
	Scanner s=new Scanner(System.in);	
	long n=s.nextLong();
	long k=n/2;
	if(n%2==0)
	{}
	else
	k++;
	System.out.println(k);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
	Scanner s=new Scanner(System.in);	
	long n=s.nextLong();
	long k=n/2;
	if(n%2==0)
	{}
	else
	k++;
	System.out.println(k);
	}
} Main public static void main (String[] args) {
	Scanner s=new Scanner(System.in);	
	long n=s.nextLong();
	long k=n/2;
	if(n%2==0)
	{}
	else
	k++;
	System.out.println(k);
	} main {
	Scanner s=new Scanner(System.in);	
	long n=s.nextLong();
	long k=n/2;
	if(n%2==0)
	{}
	else
	k++;
	System.out.println(k);
	} Scanner s=new Scanner(System.in); s new Scanner(System.in) long n=s.nextLong(); n s.nextLong() s.nextLong s long k=n/2; k n/2 n 2 if(n%2==0)
	{}
	else
	k++; n%2==0 n%2 n 2 0 {} k++ k System.out.println(k) System.out.println System.out System System.out k String[] args args public class Main {
	public static void main (String[] args) {
	Scanner s=new Scanner(System.in);	
	long n=s.nextLong();
	long k=n/2;
	if(n%2==0)
	{}
	else
	k++;
	System.out.println(k);
	}
} public class Main {
	public static void main (String[] args) {
	Scanner s=new Scanner(System.in);	
	long n=s.nextLong();
	long k=n/2;
	if(n%2==0)
	{}
	else
	k++;
	System.out.println(k);
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main (String[] args) {
	Scanner s=new Scanner(System.in);	
	long n=s.nextLong();
	long k=n/2;
	if(n%2==0)
	{}
	else
	k++;
	System.out.println(k);
	}
}