a=list(map(int,input().split())) b=list(map(int,input().split())) def ok(x): if x[0]>x[1] and x[2]>x[1] or x[0]