import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter ou = new PrintWriter(System.out); ou.println((1 + Integer.parseInt(sc.next())) / 2); ou.flush(); sc.close(); } }