#include <bits/stdc++.h>
int main() {
  std::string S;
  std::cin >> S;
  long plus = std::count(S.begin(), S.end(), '+');
  long minus = std::count(S.begin(), S.end(), '-');
  std::cout << plus - minus << std::endl;
}
