#include<bits/stdc++.h>
using namespace std;
string a,b;
int sum,d;
int main()
{
cin>>a>>b;
for(int i=0;i<a.size();i++)
if(a[i]>='0' && a[i]<='9')sum=sum*10+(a[i]-'0');
for(int i=0;i<b.size();i++)
if(b[i]>='0' && b[i]<='9') d=d*10+(b[i]-'0');
cout<<sum+d;
return 0;
}