import java.util.Scanner;
public class Main{
 public static void main(String[] args) {
   double n=0;
   Scanner sc = new Scanner(System.in);
   n=sc.nextInt();
   double x;
   if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   }
   int y=(int)x;
   System.out.println(y);
 }
} import java.util.Scanner; Scanner java.util public class Main{
 public static void main(String[] args) {
   double n=0;
   Scanner sc = new Scanner(System.in);
   n=sc.nextInt();
   double x;
   if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   }
   int y=(int)x;
   System.out.println(y);
 }
} Main public static void main(String[] args) {
   double n=0;
   Scanner sc = new Scanner(System.in);
   n=sc.nextInt();
   double x;
   if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   }
   int y=(int)x;
   System.out.println(y);
 } main {
   double n=0;
   Scanner sc = new Scanner(System.in);
   n=sc.nextInt();
   double x;
   if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   }
   int y=(int)x;
   System.out.println(y);
 } double n=0; n 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n=sc.nextInt() n sc.nextInt() sc.nextInt sc double x; x if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   } n%2==0 n%2 n 2 0 {
     x=n/2;
   } x=n/2 x n/2 n 2 {
     x=n/2+0.5;
   } x=n/2+0.5 x n/2+0.5 n/2 n 2 0.5 int y=(int)x; y (int)x System.out.println(y) System.out.println System.out System System.out y String[] args args public class Main{
 public static void main(String[] args) {
   double n=0;
   Scanner sc = new Scanner(System.in);
   n=sc.nextInt();
   double x;
   if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   }
   int y=(int)x;
   System.out.println(y);
 }
} public class Main{
 public static void main(String[] args) {
   double n=0;
   Scanner sc = new Scanner(System.in);
   n=sc.nextInt();
   double x;
   if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   }
   int y=(int)x;
   System.out.println(y);
 }
} Main
import java.util.Scanner;
public class Main{
 public static void main(String[] args) {
   double n=0;
   Scanner sc = new Scanner(System.in);
   n=sc.nextInt();
   double x;
   if(n%2==0){
     x=n/2;
   }else{
     x=n/2+0.5;
   }
   int y=(int)x;
   System.out.println(y);
 }
}
