A,B=input().split() if len(A)>len(B): B=("0"*len(A)+B)[-len(A):] else: A=("0"*len(B)+A)[-len(B):] ok=1 for a,b in zip(A,B): if int(a)