#include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; const ll MOD = 1000000007LL; int main() { cin.sync_with_stdio(false); cin.tie(0); cout.tie(0); string a, b; cin >> a >> b; ll A = 0; for (int i = a.size() - 1; i >= 0; i--) { if (a[i] == '-') { A = -A; } else { A *= 10LL; A += a[i] - '0'; } } ll B = 0; for (int i = b.size() - 1; i >= 0; i--) { if (b[i] == '-') { B = -B; } else { B *= 10LL; B += b[i] - '0'; } } if (b[0] == '-') { cout << a + b << endl; } else { cout << A + B << '\n'; } return 0; }