import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replaceAll("-", "");

		System.out.println(2 * s.length() - 4);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replaceAll("-", "");

		System.out.println(2 * s.length() - 4);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replaceAll("-", "");

		System.out.println(2 * s.length() - 4);
	} main {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replaceAll("-", "");

		System.out.println(2 * s.length() - 4);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next().replaceAll("-", ""); s sc.next().replaceAll("-", "") sc.next().replaceAll sc.next() sc.next sc "-" "" System.out.println(2 * s.length() - 4) System.out.println System.out System System.out 2 * s.length() - 4 2 * s.length() 2 s.length() s.length s 4 String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replaceAll("-", "");

		System.out.println(2 * s.length() - 4);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replaceAll("-", "");

		System.out.println(2 * s.length() - 4);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replaceAll("-", "");

		System.out.println(2 * s.length() - 4);
	}
}