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