import java.util.*;

public class Main { 
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        long o=0;
        long n=sc.nextLong();
        o=(n+1)/2;
      System.out.println(o);
    }
    
} import java.util.*; util.* java public class Main { 
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        long o=0;
        long n=sc.nextLong();
        o=(n+1)/2;
      System.out.println(o);
    }
    
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        long o=0;
        long n=sc.nextLong();
        o=(n+1)/2;
      System.out.println(o);
    } main {
        Scanner sc=new Scanner(System.in);
        long o=0;
        long n=sc.nextLong();
        o=(n+1)/2;
      System.out.println(o);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) long o=0; o 0 long n=sc.nextLong(); n sc.nextLong() sc.nextLong sc o=(n+1)/2 o (n+1)/2 (n+1) n 1 2 System.out.println(o) System.out.println System.out System System.out o String[] args args public class Main { 
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        long o=0;
        long n=sc.nextLong();
        o=(n+1)/2;
      System.out.println(o);
    }
    
} public class Main { 
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        long o=0;
        long n=sc.nextLong();
        o=(n+1)/2;
      System.out.println(o);
    }
    
} Main
import java.util.*;

public class Main { 
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        long o=0;
        long n=sc.nextLong();
        o=(n+1)/2;
      System.out.println(o);
    }
    
}