T=int(input()) Ans=[0]*T for t in range(T): N=int(input()) if N%2: Ans[t]=2*N else: Ans[t]=N//2 print(*Ans,sep="\n")