N = int(input()) if N%2 == 0: ans = N else: ans = N + 1 print(ans)