# -*-coding=utf-8-*-

n = int(eval(input()))

if n%2:

    n *= 2

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

if n%2==0:

    print(n)

else:

    print((n*2))

# -*-coding=utf-8-*-
n = int(eval(input()))
if n % 2:
    n *= 2
print(n)

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

-# -*-coding=utf-8-*- -if n % 2: -    n *= 2 -print(n) +if n % 2 == 0: +    print(n) +else: +    print((n * 2))