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