n = gets.to_i if n % 2 == 0 puts n else puts n - 1 end