#include <iostream>

using namespace std;

int main()
{
     string s;
     int ans=0;
     cin>>s;
     for(int i =0 ;i<s.size();i++)
     {
         if(s[i]=='-')
            ans--;
         else
            ans++;
     }
    cout<<ans;

	return 0;

}
