import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
        String s= bis.readLine();
        int l=s.length();
        int ans=0;
        for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        }
        System.out.println(ans);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
        String s= bis.readLine();
        int l=s.length();
        int ans=0;
        for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws IOException
    {
        BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
        String s= bis.readLine();
        int l=s.length();
        int ans=0;
        for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        }
        System.out.println(ans);
    } main {
        BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
        String s= bis.readLine();
        int l=s.length();
        int ans=0;
        for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        }
        System.out.println(ans);
    } BufferedReader bis=new BufferedReader(new InputStreamReader(System.in)); bis new BufferedReader(new InputStreamReader(System.in)) String s= bis.readLine(); s bis.readLine() bis.readLine bis int l=s.length(); l s.length() s.length s int ans=0; ans 0 for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        } int i = 0; int i = 0; i 0 i < l i l i++ i++ i {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        } {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        } char c=s.charAt(i); c s.charAt(i) s.charAt s i if(c=='+')
            {
                ans+=1;
            } c=='+' c '+' {
                ans+=1;
            } ans+=1 ans 1 if(c=='-')
            {
                ans-=1;
            } c=='-' c '-' {
                ans-=1;
            } ans-=1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
        String s= bis.readLine();
        int l=s.length();
        int ans=0;
        for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        }
        System.out.println(ans);
    }
} public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
        String s= bis.readLine();
        int l=s.length();
        int ans=0;
        for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        }
        System.out.println(ans);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
        String s= bis.readLine();
        int l=s.length();
        int ans=0;
        for (int i = 0; i < l; i++)
        {
            char c=s.charAt(i);
            if(c=='+')
            {
                ans+=1;
            }
            if(c=='-')
            {
                ans-=1;
            }
        }
        System.out.println(ans);
    }
}
