output_description: Print the integer in Takahashi's mind after he eats all the symbols.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: import sys
  
  sys.setrecursionlimit(1 << 25)
  read = sys.stdin.readline
  ra = range
  enu = enumerate
  
  
  def read_ints():
      return list(map(int, read().split()))
  
  
  def read_a_int():
      return int(read())
  
  
  def read_tuple(H):
      """
      H is number of rows
      """
      ret = []
      for _ in range(H):
          ret.append(tuple(map(int, read().split())))
      return ret
  
  
  def read_col(H):
      """
      H is number of rows
      A列、B列が与えられるようなとき
      ex1)A,B=read_col(H)    ex2) A,=read_col(H) #一列の場合
      """
      ret = []
      for _ in range(H):
          ret.append(list(map(int, read().split())))
      return tuple(map(list, zip(*ret)))
  
  
  def read_matrix(H):
      """
      H is number of rows
      """
      ret = []
      for _ in range(H):
          ret.append(list(map(int, read().split())))
      return ret
      # return [list(map(int, read().split())) for _ in range(H)] # 内包表記はpypyでは遅いため
  
  
  MOD = 10**9 + 7
  INF = 2**31  # 2147483648 > 10**9
  # default import
  from collections import defaultdict, Counter, deque
  from operator import itemgetter
  from itertools import product, permutations, combinations
  from bisect import bisect_left, bisect_right  # , insort_left, insort_right
  
  # https://atcoder.jp/contests/abc101/tasks/abc101_a
  S = read()[:-1]
  ans = 0
  for s in S:
      ans += 1 if s == "+" else -1
  print(ans)
  
problem_description: Statement
  
  There is always an integer in Takahashi's mind.
  
  Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat
  four symbols, each of which is `+` or `-`. When he eats `+`, the integer in
  his mind increases by 1; when he eats `-`, the integer in his mind decreases
  by 1.
  
  The symbols Takahashi is going to eat are given to you as a string S. The i-th
  character in S is the i-th symbol for him to eat.
  
  Find the integer in Takahashi's mind after he eats all the symbols.
samples: [{"input": "+-++", "output": "2\n    \n\n  * Initially, the integer in Takahashi's mind is 0.\n  * The first integer for him to eat is `+`. After eating it, the integer in his mind becomes 1.\n  * The second integer to eat is `-`. After eating it, the integer in his mind becomes 0.\n  * The third integer to eat is `+`. After eating it, the integer in his mind becomes 1.\n  * The fourth integer to eat is `+`. After eating it, the integer in his mind becomes 2.\n\nThus, the integer in Takahashi's mind after he eats all the symbols is 2.\n\n* * *"}, {"input": "-+--", "output": "-2\n    \n\n* * *"}, {"input": "----", "output": "-4"}]