import fractions





def lcm(x, y):

    return (x * y) // fractions.gcd(x, y)





N = int(eval(input()))

print((lcm(N, 2)))
N = int(eval(input()))

if N % 2 == 0:

    print(N)

else:

    print((2 * N))
import fractions


def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)


N = int(eval(input()))
print((lcm(N, 2)))

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

-import fractions - - -def lcm(x, y): -    return (x * y) // fractions.gcd(x, y) - - -print((lcm(N, 2))) +if N % 2 == 0: +    print(N) +else: +    print((2 * N))