      PROGRAM A - Duplex Printing
      
      INTEGER N, a
      READ(*,*) N
      IF(mod(N,2) = 1)THEN
         a=(N + 1) / 2
      ELSE IF(mod(N,2) = 0)THEN
         a = N / 2
      END IF
      
      WRITE(*,*) a
      STOP
      END