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