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

public class Main{
	public static void main(String[] args)
			throws IOException
	{
		BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in));
		int i=0;

		int a=Integer.parseInt(br.readLine());
		i=1+a/2;
		if(a%2==0)
			i=a/2;
		System.out.println(i);
		

	}
} import java.util.*; util.* java import java.io.*; io.* java import java.lang.Exception; Exception java.lang public class Main{
	public static void main(String[] args)
			throws IOException
	{
		BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in));
		int i=0;

		int a=Integer.parseInt(br.readLine());
		i=1+a/2;
		if(a%2==0)
			i=a/2;
		System.out.println(i);
		

	}
} Main public static void main(String[] args)
			throws IOException
	{
		BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in));
		int i=0;

		int a=Integer.parseInt(br.readLine());
		i=1+a/2;
		if(a%2==0)
			i=a/2;
		System.out.println(i);
		

	} main {
		BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in));
		int i=0;

		int a=Integer.parseInt(br.readLine());
		i=1+a/2;
		if(a%2==0)
			i=a/2;
		System.out.println(i);
		

	} BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in)); br new BufferedReader(new
		InputStreamReader(System.in)) int i=0; i 0 int a=Integer.parseInt(br.readLine()); a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br i=1+a/2 i 1+a/2 1 a/2 a 2 if(a%2==0)
			i=a/2; a%2==0 a%2 a 2 0 i=a/2 i a/2 a 2 System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main{
	public static void main(String[] args)
			throws IOException
	{
		BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in));
		int i=0;

		int a=Integer.parseInt(br.readLine());
		i=1+a/2;
		if(a%2==0)
			i=a/2;
		System.out.println(i);
		

	}
} public class Main{
	public static void main(String[] args)
			throws IOException
	{
		BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in));
		int i=0;

		int a=Integer.parseInt(br.readLine());
		i=1+a/2;
		if(a%2==0)
			i=a/2;
		System.out.println(i);
		

	}
} Main
import java.util.*;
import java.io.*;
import java.lang.Exception;

public class Main{
	public static void main(String[] args)
			throws IOException
	{
		BufferedReader br = new BufferedReader(new
		InputStreamReader(System.in));
		int i=0;

		int a=Integer.parseInt(br.readLine());
		i=1+a/2;
		if(a%2==0)
			i=a/2;
		System.out.println(i);
		

	}
}