#include #include #include #include using namespace std; vector q,w,s; int main(int argc, char *argv[]) { int c=1,d=1; string a,b; cin>>a>>b; for(int i=0;i=0;i--){ if(c<=q.size() && d<=w.size()){ s.push_back(q[q.size()-c]+w[w.size()-d]); c++; d++; } else{ if(c>q.size()){ s.push_back(w[w.size()-d]); d++; } else{ s.push_back(q[q.size()-c]); c++; } } } for(int i=0;i=10 && i!=s.size()-1){ s[i+1]+=s[i]/10; s[i]=s[i]%10; } } for(int i=s.size()-1;i>=0;i--){ cout<