N = int(input()) print(N) if N % 2 == 0 else print(N - 1)