n = int(eval(input()))

if n % 2:

    print((2 * n))

else:

    print(n)
n = int(eval(input()))

if n % 2 == 0:

    ans = n

else:

    ans = 2*n

print(ans)
n = int(eval(input()))
if n % 2:
    print((2 * n))
else:
    print(n)

n = int(eval(input()))
if n % 2 == 0:
    ans = n
else:
    ans = 2 * n
print(ans)

-if n % 2: -    print((2 * n)) +if n % 2 == 0: +    ans = n -    print(n) +    ans = 2 * n +print(ans)