#include using namespace std; #define rep(i,n) for(int i = 0; i < (n);i++) #define sz(x) int(x.size()) typedef long long ll; typedef pair P; constexpr int INF = 1e9; int main() { string a, b; cin >> a >> b; bool m = false; if (a[0] == '-') m = true; int d = a.back() - '0'; if (m) d *= -1; m = false; if (b[0] == '-') m = true; int c = b.back() - '0'; if (m) c *= -1; cout << d + c << endl; return 0; }