#include <bits/stdc++.h>
void init();
void solve();
int main() {
  init();
  while (scanf("%*[ \t\n]*") != EOF) {
    solve();
  }
  return 0;
}
const int MaxN = 1024;
char s[MaxN];
std::vector<int> arr;
std::vector<char> op;
void init() {}
void solve() {
  scanf("%s", s);
  arr.clear();
  op.clear();
  int last = 0;
  for (int i = 0; s[i]; i++) {
    if (s[i] == '+' || s[i] == '-') {
      arr.push_back(last);
      op.push_back(s[i]);
      last = s[i] - '0';
    } else {
      last = last * 10 + s[i] - '0';
    }
  }
  arr.push_back(last);
  int sum = arr[0];
  for (int i = 0; i < op.size(); i++) {
    sum += (op[i] == '+' ? 1 : -1) * arr[i + 1];
  }
  printf("%d\n", sum);
}
