n = int(input())

if n % 2 == 0:

  print(n)

else:

  print(n * 2)

n = int(input())

if n % 2 == 1:

  print(n * 2)

else:

  print(n)

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

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

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