def add(a,b):
if len(a)>=len(b):
pass
else:
a,b=b,a
index=len(a)-len(b)
c=[a[:index]]
for i in range(len(b)):
print i,index
k=int(b[i])+int(a[index+i])
c.append(k)
tmp=0
for j in range(len(c)-1,-1,-1):
print tmp,int(c[j])
tmp=tmp+int(c[j])
if tmp>=10 and tmp<20:
c[j]=str(tmp-10)
tmp=1
else:
c[j]=str(tmp)
tmp=0
print a,b,c
print "".join(c)