import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    }
  }
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    }
  }
} Main public static void main(String[] args) {
    resolve(System.in, System.out);
  } main {
    resolve(System.in, System.out);
  } resolve(System.in, System.out) resolve System.in System System.in System.out System System.out String[] args args static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    }
  } resolve {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    }
  } Scanner sc = new Scanner(is); sc new Scanner(is) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    } n % 2 == 0 n % 2 n 2 0 {
      pw.println(n / 2);
    } pw.println(n / 2) pw.println pw n / 2 n 2 {
      pw.println(n / 2 + 1);
    } pw.println(n / 2 + 1) pw.println pw n / 2 + 1 n / 2 n 2 1 InputStream is is PrintStream pw pw public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    }
  }
} public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    }
  }
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    resolve(System.in, System.out);
  }

  static void resolve(InputStream is, PrintStream pw) {
    Scanner sc = new Scanner(is);
    int n = Integer.parseInt(sc.next());
    if (n % 2 == 0) {
      pw.println(n / 2);
    } else {
      pw.println(n / 2 + 1);
    }
  }
}
