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