ashely_come @ 2024-01-04 15:21:02
s1=input()
s2=input()
a=[0]5050
b=[0]5050
c=[0]*5050
lena=len(s1)
lenb=len(s2)
maxn=max(lena,lenb)
for i in range(1,lena+1):
a[i]=ord(s1[lena-i])-ord('0')
for i in range(1,lenb+1):
b[i] = ord(s2[lenb - i]) - ord('0')
for i in range(1,maxn+1):
c[i]+=a[i]+b[i]
c[i+1]+=c[i]//10
c[i]%=10
if c[maxn+1]>0:
maxn+=1
i=maxn
num=0
while i>=1:
num=num*10+c[i]
i-=1
print(num)