import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;



		for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		}

		System.out.println(pcount);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;



		for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		}

		System.out.println(pcount);
	}
} Main public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;



		for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		}

		System.out.println(pcount);
	} main {
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;



		for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		}

		System.out.println(pcount);
	} Scanner as = new Scanner(System.in); as new Scanner(System.in) String n = as.next(); n as.next() as.next as String[] strArray = n.split(""); strArray n.split("") n.split n "" int pcount = 0; pcount 0 for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		} int i=0; int i=0; i 0 i<strArray.length i strArray.length strArray strArray.length i++ i++ i {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		} {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		} if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			} strArray[i].equals("+") strArray[i].equals strArray[i] strArray i "+" {
				pcount += 1;
			} pcount += 1 pcount 1 if(strArray[i].equals("-")) {
				pcount -= 1;
			} strArray[i].equals("-") strArray[i].equals strArray[i] strArray i "-" {
				pcount -= 1;
			} pcount -= 1 pcount 1 System.out.println(pcount) System.out.println System.out System System.out pcount String[] args args public class Main{
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;



		for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		}

		System.out.println(pcount);
	}
} public class Main{
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;



		for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		}

		System.out.println(pcount);
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;



		for(int i=0;i<strArray.length;i++) {

			if(strArray[i].equals("+")){
				pcount += 1;
			}else if(strArray[i].equals("-")) {
				pcount -= 1;
			}
		}

		System.out.println(pcount);
	}
}