print('Z',r,zc,rmtot[0]) zc=[0,0,0,0,0] rmtot[0]=0 L=NL best=min(L,key=lambda x:(x[14],max(x[3],x[8]),x[15],x[16])) print(best[16],best[14],H,len(L))