#include<iostream> #include<cstring> #include<cstdlib> using namespace std; int main(){ string s1,s2; cin>>s1>>s2; string maxx=s1,minn=s2; if(s1.size()<s2.length()){ maxx=s2; minn=s1; } int a=maxx.length()-1,b=minn.length()-1; for(int i=b;i>=0;i--){ maxx[a--]+=minn[i]-'0'; } for(int i=maxx.length()-1;i>0;i--){ if(maxx[i]>'9'){ maxx[i]-=10; maxx[i-1]++; } } if(maxx[0]>'9'){ maxx[0]-=10; maxx="1"+maxx; } cout<<maxx; return 0; }