for _ in range(int(input())): s=input() print(s+'0'*len(s))