
import java.util.Scanner;

/**
 * Copyright © 2018 Chris. All rights reserved.
 *
 * @author Chris
 * 2018/6/23 11:55
 * @see meituan.n2018.Bturn
 */
public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        char ch[] = sc.next().toCharArray();
        int cnt = 0;
        for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        }
        System.out.println(cnt);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        char ch[] = sc.next().toCharArray();
        int cnt = 0;
        for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        }
        System.out.println(cnt);
    }
} Main public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        char ch[] = sc.next().toCharArray();
        int cnt = 0;
        for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        }
        System.out.println(cnt);
    } main {

        Scanner sc = new Scanner(System.in);

        char ch[] = sc.next().toCharArray();
        int cnt = 0;
        for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        }
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char ch[] = sc.next().toCharArray(); ch sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int cnt = 0; cnt 0 for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        } char c ch {
            cnt += c == '+' ? 1 : -1;
        } {
            cnt += c == '+' ? 1 : -1;
        } cnt += c == '+' ? 1 : -1 cnt c == '+' ? 1 : -1 c == '+' c '+' 1 -1 1 System.out.println(cnt) System.out.println System.out System System.out cnt String args[] args public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        char ch[] = sc.next().toCharArray();
        int cnt = 0;
        for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        }
        System.out.println(cnt);
    }
} public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        char ch[] = sc.next().toCharArray();
        int cnt = 0;
        for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        }
        System.out.println(cnt);
    }
} Main

import java.util.Scanner;

/**
 * Copyright © 2018 Chris. All rights reserved.
 *
 * @author Chris
 * 2018/6/23 11:55
 * @see meituan.n2018.Bturn
 */
public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        char ch[] = sc.next().toCharArray();
        int cnt = 0;
        for (char c : ch) {
            cnt += c == '+' ? 1 : -1;
        }
        System.out.println(cnt);
    }
}
