/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP,
Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS,
JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <iostream>
#include <sstream>
#include<vector>
using namespace std;
int main()
{
string s,s1;
cout<<"please enter a string"<<endl;
getline(cin,s);
cout<<"please enter a string two"<<endl;
getline(cin,s1);
int i=0;
string num, num1;
while(i<s.size()||i<s1.size())
{ int f=s[i];
if(f==48||f==49||f==50||f==51||f==52||f==53||f==54||f==55||f==56||f==57)
{
num.push_back(s[i]);
}
f=s1[i];
if(f==48||f==49||f==50||f==51||f==52||f==53||f==54||f==55||f==56||f==57)
{
num1.push_back(s1[i]);
}
i++;
}
int sum;
stringstream sso;
sso<<num;
sso>>sum;
sso.clear();
int a;
sso<<num1;
sso>>a;
cout<<a+sum;
return 0;
}