import math

n = int(eval(input()))

gcd = math.gcd(2, n)

lcm = 2 * n // gcd

print(lcm)

n = int(eval(input()))

if n % 2 == 0:

    print(n)

else:

    print((2 * n))
import math

n = int(eval(input()))
gcd = math.gcd(2, n)
lcm = 2 * n // gcd
print(lcm)

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

-import math - -gcd = math.gcd(2, n) -lcm = 2 * n // gcd -print(lcm) +if n % 2 == 0: +    print(n) +else: +    print((2 * n))