Optimize the following python code for better performance:
A = list(map(int, input().split()))
B = list(map(int, sinput().split()))
is_lower = True
for i in range(len(A)):
	for j in range(len(B)):
		if A[i] > B[j]:
			is_lower = False
		if is_lower:
			print("Yes")
		else:
			print("No") Provide response in all capital letters, no lowercase letters allowed.
user