def leggyengebb(A, B): if min(A) < min(B): return "B" elif min(B) < min(A): return "A" else: return "dontetlen"