output_description: Print the integer in Takahashi's mind after he eats all the symbols.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: #include <bits/stdc++.h>
  #define FOR(i, m, n) for (int i = m; i < (n); i++)
  #define RFOR(i, m, n) for (int i = (m - 1); i >= 0; i--)
  #define REP(i, n) FOR(i, 0, n)
  #define RREP(i, n) RFOR(i, n, 0)
  #define ALL(v) v.begin(), v.end()
  #define RALL(v) v.rbegin(), v.rend()
  #define print(ele) cout << (ele) << endl
  #define print10(ele) cout << fixed << setprecision(10) << (ele) << endl
  
  using namespace std;
  typedef long long ll;
  typedef vector<int> ivec;
  typedef vector<string> svec;
  typedef vector<ll> lvec;
  
  const int mod = 1e9 + 7;
  const ll INF = 1000000000000000000LL;
  
  int main() {
    string s;
    cin >> s;
    int ans = 0;
    REP(i, 4) {
      if (s[i] == '+')
        ans++;
      else
        ans--;
    }
    print(ans);
    return 0;
  }
problem_description: Statement
  
  There is always an integer in Takahashi's mind.
  
  Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat
  four symbols, each of which is `+` or `-`. When he eats `+`, the integer in
  his mind increases by 1; when he eats `-`, the integer in his mind decreases
  by 1.
  
  The symbols Takahashi is going to eat are given to you as a string S. The i-th
  character in S is the i-th symbol for him to eat.
  
  Find the integer in Takahashi's mind after he eats all the symbols.
samples: [{"input": "+-++", "output": "2\n    \n\n  * Initially, the integer in Takahashi's mind is 0.\n  * The first integer for him to eat is `+`. After eating it, the integer in his mind becomes 1.\n  * The second integer to eat is `-`. After eating it, the integer in his mind becomes 0.\n  * The third integer to eat is `+`. After eating it, the integer in his mind becomes 1.\n  * The fourth integer to eat is `+`. After eating it, the integer in his mind becomes 2.\n\nThus, the integer in Takahashi's mind after he eats all the symbols is 2.\n\n* * *"}, {"input": "-+--", "output": "-2\n    \n\n* * *"}, {"input": "----", "output": "-4"}]