#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; ll L = s.size(); ll left, right; char op; FOR(i, 1, L){ if(s[i]=='+' || s[i]=='-'){ op = s[i]; left = stoi(s.substr(0, i)); right = stoi(s.substr(i+1)); break; } } ll ans; if(op=='+'){ ans = left - right; }else{ ans = left + right; } p(ans); return 0; }