n = gets.to_i case n % 2 when 0 puts n / 2 when 1 puts n end