let () =
  let n = read_line () |> int_of_string in
  (match n mod 2 with
   | 0 -> n
   | _ -> n + 1)
  |> string_of_int
  |> print_endline