#include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; ll mod = 1e9 + 7; int f(string s){ int res = 0; bool minus = false; for(int i = 0; i < s.size(); i++){ if('0' <= s[i] && s[i] <= '9'){ res += s[i] - '0'; res *= 10; }else if(s[i] == '-'){ minus = true; } } res /= 10; if(minus){ res *= -1; } return res; } int main(){ cin.tie(0); ios::sync_with_stdio(false); //cout << fixed << setprecision(15); string a , b; cin >> a >> b; int ans = f(a) + f(b); cout << ans << endl; return 0; }