b=int(input()) for j in range(b): a=input() if len(a)>=12: print(a)