N = gets.to_i puts Rational(N, 2).ceil