Problem:


Score : 100 points

Problem Statement

You are given a positive integer N.
Find the minimum positive integer divisible by both 2 and N.

Constraints

1 \leq N \leq 10^9

All values in input are integers.

Input

Input is given from Standard Input in the following format:

N

Output

Print the minimum positive integer divisible by both 2 and N.

Sample Input 1

3

Sample Output 1

6

6 is divisible by both 2 and 3.
Also, there is no positive integer less than 6 that is divisible by both 2 and 3.
Thus, the answer is 6.

Sample Input 2

10

Sample Output 2

10

Sample Input 3

999999999

Sample Output 3

1999999998



Sample input:
3


Sample output:
6

Submission status: Wrong Answer

Solution code:
print(int(input())*2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(n, exit()):
  if i % 2 == 0 and i % n == 0:
    print(i)
    exit()

Submission status: Wrong Answer

Solution code:
n=input()
print(n+n)

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N if N % 2 else 2 * N)

Submission status: Wrong Answer

Solution code:
n=int(input())
m=max(n,2)+1
while 1:
    if m%2==m%n==0:
        print(m)
        break
    m+=1

Submission status: Wrong Answer

Solution code:
n=int(input())
m=max(n,2)+1
while 1:
    if m%2 and m%n:
        print(m)
        break
    m+=1

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(1,n+1):
    if n*i %n==0 and n*i %2==0:
        print(n*i)
        exit()

Submission status: Wrong Answer

Solution code:

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 1:
  print(N * 2)
else:
  while N % 2 == 0:
    N = int(N / 2)
  print(N * 2)

Submission status: Wrong Answer

Solution code:
N = int(input())

i = int(N/2)

while 2*i % N != 0:
  i+=1

print(2*i)

Submission status: Wrong Answer

Solution code:
print((lambda x:x*(2*(x%2)))(int(input())))

Submission status: Wrong Answer

Solution code:
n = int(input())
print(2*n)

Submission status: Wrong Answer

Solution code:
# input
N = int(input())

# check
for n in range(N, 10 ** 9, N):
    if n % 2 == 0:
        print(n)
        exit(0)

Submission status: Wrong Answer

Solution code:
N = int(input())
import fractions
print(fractions.gcd(2, N))

Submission status: Wrong Answer

Solution code:
N = int(input())

while N % 2 == 0:
    N //= 2
print(2*N)

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = n
if n==1: ans = 1
elif n==2: ans = 2
else:
    if n%2:
        ans = ans*2
    else:
        pass
print(ans)

Submission status: Wrong Answer

Solution code:
import statistics
def resolve():
	n = int(input())
	a = list(map(int, input().split()))
	seq = []
	for i in range(1, n+1):
		seq.append(abs(i-a[i-1]))
	seq = sorted(seq)
	m = int(statistics.median(seq))
	ans = 0
	for i in seq:
		ans += abs(i-m)
	print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
print(n*2)

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(1,2*N):
  if i%2==0 and i%N==0:
    print(i)
    break

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()
print(2*N if N%2==0 else N)

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    if N % 10 == 0:
        print(N)
    else:
        print(2*N)
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
print(2 * N)

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(2, 100, 2):
    if i % N == 0:
        print(i)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
line = input()
num = [int(n) for n in line.split()][0]
print(num)
smaller_divisible_number = num
if num%2 != 0:
    smaller_divisible_number *= 2
print(smaller_divisible_number)

Submission status: Wrong Answer

Solution code:
L = 0
I = 1
N = int(input())
if N < 1 or N > 10:
    print('invalido!')
if (N >= 1 and N <= 10):
    while L == 0:
        if (I % 2 == 0 and I % N == 0):
            print(I)
            L = 1
        I +=I

Submission status: Wrong Answer

Solution code:
numero = int(input("escreva o numero "))
if (numero % 2) == 0:
    print(numero)
else:
    print(numero * 2)

Submission status: Wrong Answer

Solution code:
num = int(input())
  
if num%2 != 0:
    print(str(num))
else:
    print(str(2*num))

Submission status: Wrong Answer

Solution code:
numero=int(input())
resultado=numero*2
print(resultado)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
numero = int(input("escreva o numero "))
if (numero % 2) == 0:
  print(numero)
else:
  print(numero * 2)

Submission status: Wrong Answer

Solution code:
def main():
    a, b = 2, int(input())
    ta, tb = a, b
    if b == 0: return 0
    while a%b != 0:
       a, b = b, a%b
    return int((ta*tb)/b)
main()

Submission status: Wrong Answer

Solution code:
def smaller_divisible_number(num: int) -> int:
    smaller_divisible_number = num
    if num%2 != 0:
        smaller_divisible_number *= 2
    return smaller_divisible_number

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
n = N
while n%2==0:
    n = n//2
if n==1:
    print(N)
else:
    print(int(n*2))

Submission status: Wrong Answer

Solution code:
N = int(input())
while N%2==0:
    N = N/2
print(int(N*2))

Submission status: Wrong Answer

Solution code:
N = int(input())
while N%2==0:
  N = N/2
print(N*2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%2==0:
  print('N')
else:
  print(2*N)

Submission status: Wrong Answer

Solution code:
s = 2
n = int(input())


def gcd(a, b):
    x = max(a, b)
    y = min(a, b)
    if x % y == 0:
        return y
    else:
        while x % y != 0:
            z = x % y
            x = y
            y = z
        else:
            return z


def lcm(a, b):
    print(gcd(a, b))
    return int(a * b / gcd(a, b))


print(lcm(s, n))

Submission status: Wrong Answer

Solution code:
n = int(input())
print(n) if n%2 == 0 else print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n==2):
    print(2)
else:
        print(n*2)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 2:
    print(n)
else:
    print(2*n)

Submission status: Wrong Answer

Solution code:
n = int(input())

print(2*n)

Submission status: Wrong Answer

Solution code:
N=int(input())

cnt=0
while True:
    if N%2==1:
        print(2*2**cnt*N)
        break
    else:
        N=N//2
        cnt+=1

Submission status: Wrong Answer

Solution code:
N=int(input())

cnt=0
while True:
    if N%2==1:
        print(2**cnt*N)
        break
    else:
        N=N//2
        cnt+=1

Submission status: Wrong Answer

Solution code:

N=int(input())

cnt=0
while True:
    if N%2==1 and N!=1:
        print(2*N)
        break
    elif N==1:
        print(2**cnt)
        break
    else:
        N=N//2
        cnt+=1

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

N=int(input())
cnt=1
while True:
    if N%2==1:
        print(2**(cnt-1)*N)
        break
    else:
        N=N//2
        cnt+=1

Submission status: Wrong Answer

Solution code:

N=int(input())
while True:
    if N%2==1:
        print(2*N)
        break
    else:
        N=N//2

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

N=int(input())
while True:
    if N%2==1:
        print(2*N)
        break
    else:
        N=N//2

Submission status: Wrong Answer

Solution code:
N = int(input())
if N // 2 == 0:
    print(N)
else:
    print(N * 2)

Submission status: Wrong Answer

Solution code:
k=int(input())
stop=True
while stop:
  if k%2==0:
    k=k//2
  else:
    stop=False
print(2*k)

Submission status: Wrong Answer

Solution code:
print(int(input()) * 2)

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N =int(readline())
print(2*N)

Submission status: Wrong Answer

Solution code:
import fractions
n = int(input())
print(fractions.gcd(2,n))

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:print(n)
else:print(n//2)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(n*2)

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==0:
  print(N)
else:
  print(N+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if n / 2 != 0:
    n *= 2
print(n)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n&2==0:
  print(n)
else:
  print(2*n)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(min(n, 2 *n))

Submission status: Wrong Answer

Solution code:
N = int(input())
if not N%2:
    print(2*N)
else:print(N)

Submission status: Wrong Answer

Solution code:
n = int(input().strip())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 == 0:
    print(n / 2)
elif n % 2 != 0:
    print(2 * n)

Submission status: Wrong Answer

Solution code:
N = int(input())    
if(N%2==0):
    ans=N
else:
    ans=2*N
print(N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n%2:
  print(2+n)
else:
  print(n)

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
n=int(input())

if n<2:
    print(1)
elif n%2==0:
    print(max(2,n))
else:
    print(2*n)

Submission status: Wrong Answer

Solution code:
import fractions
n = int(input())
gcd = fractions.gcd(2, n)
lcm = (2 * n / gcd)
print(lcm)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 2 or n == 1:
    print(2)
else:
    print(n * 2)

Submission status: Wrong Answer

Solution code:
s = int(input())
if int(s/2) != 0:
    print(2*s)
else:
    print(s)

Submission status: Wrong Answer

Solution code:
N=int(input())
print(N*(N%2*2))

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 0:
  print(N)
else:
  print(N+1)

Submission status: Wrong Answer

Solution code:
import fractions


def solve():
    n = int(input())
    return lcm(2, n)


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


if __name__ == "__main__":
    print(solve())

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 0:
    print(N)
else:
    print(N)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 == 0:
  print(n)
else:
  print(n + 1)

Submission status: Wrong Answer

Solution code:
x = int(input()) 
if x % 2 != 0 or x == 1:
  print(x*2)
else:
  print(x/2*2)

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 0
while True:
  if n*i % 2 == 0:
    print(n*i)
    break
  i += 1

Submission status: Wrong Answer

Solution code:
n = int(input())

print(2*n if n%2==0 else n)

Submission status: Wrong Answer

Solution code:
N = input()

print(N*2)

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N if N/N or N/2 else int(N)*2)

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(n, 10 ** 9, n):
  if i%2 == 0 and i%n == 0:
    print(i)
    break

Submission status: Wrong Answer

Solution code:
def abc():
    N = int(input().rstrip())
    if N == 1:
        print(N)
        return

    print(N * 2 if N % 2 else N)


abc()

Submission status: Wrong Answer

Solution code:
n = int(input())
print(n+(n*n%2 == 0))

Submission status: Wrong Answer

Solution code:
print(str(2*int(input())))

Submission status: Wrong Answer

Solution code:
n= int(input())
print(n * 2)

Submission status: Wrong Answer

Solution code:
import fractions
N = int(input())
print(2 * N /fractions.gcd(2,N))

Submission status: Wrong Answer

Solution code:
import fractions
N = int(input())
print(fractions.gcd(2,N))

Submission status: Wrong Answer

Solution code:
a = int(input())

print(a*2)

Submission status: Wrong Answer

Solution code:
N = int(input())
x = N*2
print(x)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
    print("1")
elif n % 2 == 1:
    print(2*n)
else:
    print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(N, N*N):
    if i % N == 0 and i % 2 == 0:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
i = int(input())
if i % 2 == 0:
  print(i)
else:
  print(i*2)
print("{}".format((i * 2) if i%2 ==1 else 0))

Submission status: Wrong Answer

Solution code:
i = int(input())
print("{}".format((i * 2) if i%2 ==1 else 0))

Submission status: Wrong Answer

Solution code:
i = int(input())
print("{}".format(i * 2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
x=0
while x%n!=0:
    x+=2

print(x)

Submission status: Wrong Answer

Solution code:
N=int(input())
ans=N if N%2==0 else 2*N
print(N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
if N==1:
  print(1)
elif N%2==0:
  print(N)
else:
  print(N*2)

Submission status: Wrong Answer

Solution code:
n = int(input())
result = n

while True:
    if result % n == 0:
        print(result)
        break
    result = result * 2

Submission status: Wrong Answer

Solution code:
n = int(input())
result = n

while True:
    result = result * 2
    if result % n == 0:
        print(result)
        break

Submission status: Wrong Answer

Solution code:
n = int(input())
result = 0

while True:
    result += n * 2
    if result % n == 0:
        print(result)
        break

Submission status: Wrong Answer

Solution code:
import fractions
N = int(input())
def lcm(x, y):
    return (x * y) / fractions.gcd(x, y)

print(lcm(2, N))

Submission status: Wrong Answer

Solution code:
s = int(input())
while s%2==0:
    s /= 2
print(2*s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    N = int(lines.pop(0))
    if N % 2 == 0:
        print(N)
    else:
        print(N*2)

#
# main
#

# 1. use list instead of stdin

#contents = '''\
#999999999\
#'''
#lines = contents.split('\n')

# 2. use stdin

lines = [x.strip() for x in sys.stdin.readlines()]

Submission status: Wrong Answer

Solution code:
N = int(input())
print(2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if(N%10 == 0):
  print(N)
else:
  print(N*2)

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(2*n):
    if i % 2 == 0 and i % n == 0:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
n = int(input())
while n % 2 == 0:
    n //= 2

print(n * 2)

Submission status: Wrong Answer

Solution code:
n = int(input())
while n % 2 == 0:
    n /= 2

print(n * 2)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(3,1000000000):
    if(i%2==0 and i%N==0):
        print(i)
        break

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(3,100000000000):
    if(i%2==0 and i%N==0):
        print(i)
        break

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(3,109):
    if(N%2==0 and N%i==0 and N!=i):
        print(i)
        break

Submission status: Wrong Answer

Solution code:
n=int(input())
print([n,n*2][n%2==0])

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%2 == 0:
    print(n/2)
    exit()
print(n*2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input());print(a+(a%2>0))

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N if N % 2 else N*2)

Submission status: Wrong Answer

Solution code:
a=2
b=int(input())
x=a*b
if a>b:
    tmp=a
    b=a
    a=tmp
r=b%a
while r!=0:
    a=b
    b=r
    r=a%b
print(x/b)

Submission status: Wrong Answer

Solution code:
N = int(input())

print(N + N % 2)

Submission status: Wrong Answer

Solution code:
A = int(input())

if (A // 2) == 0:
  B = A
else:
  B = A * 2
  
print(B)

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
print(max(a)-min(a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = n % 2
if (s == 0):
    print(2)
else:
    t = n * 2
    print(t)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 == 0:
    ans = N
else:
    ans = 2 * N
    
    
print(N)

Submission status: Wrong Answer

Solution code:
N = int(input())
n = N*2
while n > N:
    if n%4 == 0 and n != N:
        n /= 2
        continue
    break
print(n)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N / 2 == 0:
    print(N)
else:
    print(2*N)

Submission status: Wrong Answer

Solution code:
a=int(input())
b=a/2
if b*2==a:
  print(a)
else:
  print(a*2)

Submission status: Wrong Answer

Solution code:
a=int(input())
b=a/2

Submission status: Wrong Answer

Solution code:
int(3/2)

Submission status: Wrong Answer

Solution code:
a=input()
if a==0:
  print(a)
else:
  print(a*2)

Submission status: Wrong Answer

Solution code:
a=input()
#if int(a/2)*2==a:
 # print(a)
#else:
  #print(a*2)
print(a)

Submission status: Wrong Answer

Solution code:
n = int(input('n:'))
x = 2
while True:
  if x%n==0 and x%2==0:
    print(x)
    break
  else:
    x += 2

Submission status: Wrong Answer

Solution code:
def abc(N):
    if N % 2 == 0:
        return N
    else:
        return N * 2

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

if n%2==0:
  print(n)
else:
  print(n/2)

Submission status: Wrong Answer

Solution code:
#nが偶数の場合は2でも割り切れるので場合わけ

n=int(input())

if n//2==0:
	print(n)
else:
	print(2*n)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
N = input()
N = int(N)

for i in range(1,1000000000):
    if i%2 == 0 and i%N == 0:
        number = i
        print(number)
        break
    break

Submission status: Wrong Answer

Solution code:
n=int(input());print(n+n*n%2)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
 
def main():
	N = int(input())
	if N == 0:
		print(0)
	else:
		while N % 2 == 0:
	 		N = N / 2
		print(int(N*2))
 
if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
 
def main():
	N = int(input())
	while N % 2 == 0:
		N = N / 2
	print(int(N*2))
 
if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
 
def main():
	N = int(input())
	while N % 2 == 0:
		N = N / 2
	print(N*2)
 
if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 != 0:
    print(int(2*N))
else:
    count = 0
    while N%2 == 0:
        N = N/2
        count += 1
    if N==1:
        print(2*count)
    else:
        print(2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0
if N%2 != 0:
    print(int(2*N))
else:
    while N%2 == 0:
        N = N/2
        count += 1
        if N==1:
            print(2**count)

if N != 1:
    print(int(2*N))

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 != 0:
    print(int(2*N))
else:
    while N%2 == 0:
        N = int(N/2)
    print(int(2*N))

Submission status: Wrong Answer

Solution code:
n = int(input())# your code goes here
if(n/2 == 0):
	print(n)
else:
	print(n*2)

Submission status: Wrong Answer

Solution code:
N = int(raw_input())

tmp=N*2

print tmp

Submission status: Wrong Answer

Solution code:
N = long(raw_input())

print N*2

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(raw_input())

print N*2

Submission status: Wrong Answer

Solution code:
def m():
    n = int(input())
    if n % 2 == 0:
        return n
    return n*2

Submission status: Wrong Answer

Solution code:
from sys import stdin
import sys

a = int(stdin.readline().rstrip())
x = a * 2
print(x)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import numpy as np

N = int(input())
def gcd(a, b):
    while b:
        a, b = b, a % b
    return a
def lcm(a,b):
    return a * b //gcd(a,b)
lcm(2,N)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n <= 2:
    print(n)
elif n % 2 == 0:
    print(n)
else:
    print(n * 2)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))

if int(a[0]) %2 == 0:
    print(a)
else:
    print(a*2)

Submission status: Wrong Answer

Solution code:
N = int(input())
def gcd(a, b):
    while b:
        a, b = b, a % b
    return a
def lcm(a,b):
    return a * b //gcd(a,b)
lcm(2,N)

Submission status: Wrong Answer

Solution code:
#-*- coding:utf-8 -*-

a = int(input())

if a % 2 < 1:
        print(2*a)
else:
        print(a)

Submission status: Wrong Answer

Solution code:
a = int(input())
b = 2
x = a * b

if a < b:
    tmp = a
    a = b
    b = tmp

r = a % b
while r != 0:
    a = b
    b = r
    r = a % b

print(x/b)

Submission status: Wrong Answer

Solution code:
d=int(input())
if d%2==0:
    print(d)
print(2*d)

Submission status: Wrong Answer

Solution code:
a = input()
print(a * 2 if int(a) % 2 == 1 else a)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N <= 2 or N%2 == 0:
  print(N)
else:
  print(2*N)

Submission status: Wrong Answer

Solution code:
#-*- coding:utf-8 -*-

a = int(input())

if a / 2 < 1:
        print(2*a)
else:
        while a/2 > 1:
                a = a / 2
        print(a)

Submission status: Wrong Answer

Solution code:
def read_line(*types): return [f(a) for a, f in zip(input().split(), types)]

n, = read_line(int)

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

Submission status: Wrong Answer

Solution code:
N = 10
for i in range(1,int(10e8)) :
    if (i % 2) == 0 :
        if (i % N) == 0 :
            print(i)
            break

Submission status: Wrong Answer

Solution code:
#-*- coding:utf-8 -*-

a = int(input())

if a / 2 < 1:
        print(2*a)
else:
        print(a)

Submission status: Wrong Answer

Solution code:
N=int(input())
print([2*N,N][N%2==0 and N > 2])

Submission status: Wrong Answer

Solution code:
import numpy as np
N=int(input())
def gcd(a,b):
    c=int(np.floor(a%b))
    return a-b*c
if gcd(N,2)==0:
    print(N)
else:
    print(2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 != 0:
    print(int(2*N))
else:
    while N%2 == 0:
        N = N/2
    print(int(2*N))

Submission status: Wrong Answer

Solution code:
N = int(input())
if N // 2 == 0:
	print(N)
else:
	print(N * 2)

Submission status: Wrong Answer

Solution code:
n=int(input())
num=n
while(num%n!=0 and num%2!=0):
    num+=1
print(num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(1,N*2):
    if i%N == 0 and i%2 == 0:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
n=int(input())
print(2*n)

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N*2)

Submission status: Wrong Answer

Solution code:
# Q_A
N = int(input())

if N % 2 == 2:
    re = N
else:
    re = N * 2

print(re)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
999999999

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 == 0:
	print(n)
else:
	print(n + 1)

Submission status: Wrong Answer

Solution code:
N = int(input())

print(2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N <= 2 or N%2 == 0:
  print(2)
else:
  print(2*N)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

print(n*2)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
for i in range(n, n * 2 + 1):
  if i % 2 == 0 and i % n == 0:
    print(i)
    exit()

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
m=max(n,2)+1
while 1:
    if m%2 and m%n:
        print(m)
    m+=1

Submission status: Time Limit Exceeded

Solution code:
def solve():
    n = int(input())
    i = n
    while True:
        if i % 2 == 0 and i % n == 0:
            print(i)
            exit()


if __name__ == "__main__":
    solve()

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
x = 1
while x % 2 != 0 or x % n != 0:
    x += 1
print(x)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
ans = 2
while(1):
  if ans%2==0 and ans%n==0:
    break
  ans += 1
print(ans)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
contador = 0
res = 0
while(True):
    contador += 1
    if contador % 2 == 0 and contador % n == 0:
        res = contador
        break;
print(res,'\n')

Submission status: Time Limit Exceeded

Solution code:
def ABC_102_A():
    N = int(input())

    for i in range(1000000000):
         if 2*i%N == 0 and i>0:
             print(2*i)
             break
         else:
             continue
         break
 


if __name__ == '__main__':

    ABC_102_A()

Submission status: Time Limit Exceeded

Solution code:
i = 1
N = int(input())
while True:
  if i % 2 == 0 and i % N == 0:
    print(i)
    break
  i = i + 1

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
for i in range(1,10000000000):
  if i % 2 == 0 and i % N == 0:
    print(i)
    break

Submission status: Time Limit Exceeded

Solution code:
N = int(input())

i = 2
while True:
    if i % N == 0:
        print(i)
        break
    i += 2

Submission status: Time Limit Exceeded

Solution code:
n = int(input())

for i in range(1, 10**9):
    if i % 2 == 0 and i % n == 0: 
        print(i)
        break

Submission status: Time Limit Exceeded

Solution code:
a = int (input ())
b = 2
number = 1

while number % a != 0 or number % b != 0:
    number += 1

print (number)

Submission status: Time Limit Exceeded

Solution code:
a = int (input ())
b = 2
number = b

while number % a != 0 or number % b != 0:
    number += 1

print (number)

Submission status: Time Limit Exceeded

Solution code:
N=int(input())

i=0
while(True):
  i+=1
  if (i % N == 0 and i % 2==0):
    print(i)
    break

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
i=1
while True:
  if i%2==0 and i%n==0:
    break
  i+=1
print(i)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())

for i in range(2, 10**9, 2):
    if i % n == 0:
        print(i)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
ans = 1

while True:
    if ans % n == 0 and ans % 2 == 0:
        print(ans)
        break
    ans += 1

Submission status: Time Limit Exceeded

Solution code:
N=int(input())
while True:
    if N%2==1:
        print(2*N)
    else:
        N=N//2

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
i = n
while 1:
  if i%n == 0 and i%2 ==0:
    print(i)
    break
  i += 1

Submission status: Time Limit Exceeded

Solution code:
n = int(input())

for i in range(1, 1000000000):
  if i%2==0 and i%n==0:
    print(i)
    break

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
i = 1
while True:
    if (i%2==0)and(i%n==0):
        print(i)
        break
    i += 1

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
for i in range(1,10**9+1):
  if i%2==0 and i%n==0:
    print(i)
    exit()

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
for i in range(N,10000000000):
    if i%2 == 0 and i%N == 0:
        print(i)
        break

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
for i in range(1,10000000000):
    if i%2 == 0 and i%N == 0:
        print(i)
        break

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
for i in range(1, n*2+1):
  if i%2==0 and i%n==0:
    print(i)
    exit()

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
num = N

while num % N != 0 or num % 2 != 0:
    num += 1

print(num)

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
x=2
while x%n!=0:
    x+=2

print(x)