N = int(eval(input()))



if N%2==0:

  print(N)

else:

  print((2*N))
N = int(eval(input()))

print((N+N%2*N))
N = int(eval(input()))
if N % 2 == 0:
    print(N)
else:
    print((2 * N))

N = int(eval(input()))
print((N + N % 2 * N))

-if N % 2 == 0: -    print(N) -else: -    print((2 * N)) +print((N + N % 2 * N))