Byang's Additions

My code gets wrong answer only for test case 7, I’ve done everything but still could not solve it, any and all help is welcome, thank you.

a,b = map(str,input().split())
n = min(len(a),len(b))
A = list(a)
A = a[::-1]
B = list(b)
B = b[::-1]
if int(A[0]) + int(B[0]) > 9:
	---print("Yes")
	---quit()
for i in range(n-1):
	---if int(A[i]) + int(B[i]) > 9:
		------print("Yes")
		------quit()
print("No")