#include "bits/stdc++.h"
using namespace std;

int main()
{
  string s;
  int ans=0;
  cin>>s;
  for(int i=0;i<4;i++)
  {
    if(s.at(i)=="+")
      ans++;
    else
      ans--;
  }
  cout<<ans<<endl;
}