T = int(input()) for i in range(T): N = int(input()) M = N*(10**(len(str(N)))) print(M) A = N+M B = int(str(N)+str(M)) #print(B%A,A,B)