while True: try: a,b = str(input()),str(input()) s1, s2 = [i for i in a], [j for j in b] res= ["0"] flag = 0 if len(s1) < len(s2):  ...