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