n = gets.chomp.to_i n += 1 if n % 2 == 1 puts n