print('G',j,n,H,len(L)) for q in sorted(L,key=lambda x:x[16]): print(q)