n=int(input()) for i in range(n): print('1'*int(input()))