#include <bits/stdc++.h>
using namespace std;
int main() {
  string t;
  int sum = 0;
  cin >> t;
  for (int i = t.size() - 1; i >= 0; i--) {
    int flag = i, temp = 0, tt = 1;
    while (i >= 0 && t[i] != '+' && t[i] != '-') {
      temp += ((t[i] - '0') * tt);
      tt *= 10;
      i--;
    }
    if (t[i] == '+' || t[i] == '-') {
      if (t[i] == '+')
        temp -= (5 * (int)(pow(10, flag - i) + 0.001));
      else {
        temp = -temp;
        temp += (3 * (int)(pow(10, flag - i) + 0.001));
      }
    }
    sum += temp;
  }
  cout << sum;
  return 0;
}
