let () = let n = read_int () in Printf.printf "%d\n" (if n mod 2 = 0 then n else n - 1)