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.

-----Constraints-----
 - The length of S is 4.
 - Each character in S is + or -.

-----Input-----
Input is given from Standard Input in the following format:
S

-----Output-----
Print the integer in Takahashi's mind after he eats all the symbols.

-----Sample Input-----
+-++

-----Sample Output-----
2

 - Initially, the integer in Takahashi's mind is 0.
 - The first integer for him to eat is +. After eating it, the integer in his mind becomes 1.
 - The second integer to eat is -. After eating it, the integer in his mind becomes 0.
 - The third integer to eat is +. After eating it, the integer in his mind becomes 1.
 - The fourth integer to eat is +. After eating it, the integer in his mind becomes 2.
Thus, the integer in Takahashi's mind after he eats all the symbols is 2.
[{"code": "S=input()\nprint((S.count('+')-S.count('-')))\n", "passed": true, "time": 0.3, "memory": 14080.0, "status": "done"}, {"code": "S = input()\nsum = 0\nfor i in range(len(S)):\n  if S[i] == '+':\n    sum += 1\n  else:\n    sum -= 1\nprint(sum)\n", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "s=input()\ncon=[0]*2\nfor i in range(4):\n    if s[i]=='+':\n        con[0]+=1\n    else:\n        con[1]+=1\nprint(con[0]-con[1])           ", "passed": true, "time": 0.19, "memory": 14232.0, "status": "done"}, {"code": "s = input()\np = s.count('+')\nm = s.count('-')\nans = p-m\nprint(ans)", "passed": true, "time": 0.33, "memory": 14244.0, "status": "done"}, {"code": "s=input()\na=s.count(\"+\")\nb=s.count(\"-\")\nans=a-b\nprint(ans)", "passed": true, "time": 0.25, "memory": 14320.0, "status": "done"}, {"code": "n = input()\nprint(n.count(\"+\")-n.count(\"-\"))", "passed": true, "time": 0.28, "memory": 14212.0, "status": "done"}, {"code": "a = input()\nprint((a.count(\"+\") - a.count(\"-\")))\n\n", "passed": true, "time": 0.31, "memory": 14284.0, "status": "done"}, {"code": "S=input()\nx=S.count(\"+\")\ny=S.count(\"-\")\nprint(x-y)", "passed": true, "time": 0.2, "memory": 14056.0, "status": "done"}, {"code": "s=input()\na=\"0\"+s[0]+\"1\"+s[1]+\"1\"+s[2]+\"1\"+s[3]+\"1\"\nprint(eval(a))", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "s = list(input())\ncount = 0\nfor i in range(0, len(s)):\n    if s[i] == '+':\n        count += 1\n    elif s[i] == '-':\n        count -= 1\nprint(count)", "passed": true, "time": 0.31, "memory": 14120.0, "status": "done"}, {"code": "s = str(input())\nans = 0\nfor moji in s:\n    if moji =='+':\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)", "passed": true, "time": 0.15, "memory": 14100.0, "status": "done"}, {"code": "#import\n#import math\n#import numpy as np\n#= int(input())\nS = input()\n#= map(int, input().split())\n#= list(map(int, input().split()))\n#= [input(), input()]\n#= [list(map(int, input().split())) for _ in range(N)]\n#= [int(input()) for _ in range(N)]\n#= {i:[] for i in range(N)}\nans = 0\nfor s in S:\n    if s == \"+\":\n        ans += 1\n    else:\n        ans -= 1\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "a=input().count('+')\nprint(2*a-4)", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "a = input()\nprint((a.count('+') - a.count('-')))\n", "passed": true, "time": 0.2, "memory": 14092.0, "status": "done"}, {"code": "s = input()\ncnt = 0\nfor i in range(len(s)):\n    cnt = cnt+1 if s[i] == '+' else cnt-1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "s = input()\nans = 0\n\nfor i in s:\n    if i == '+':\n        ans += 1\n    else:\n        ans -= 1\n\nprint(ans)", "passed": true, "time": 0.22, "memory": 14136.0, "status": "done"}, {"code": "def main():\n    s = input()\n    ans = 0\n\n    for i in range(4):\n        if s[i] == '+':\n            ans += 1\n        elif s[i] == '-':\n            ans -= 1\n    \n    print(ans)\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14164.0, "status": "done"}, {"code": "s = input()\nprint((s.count('+') - s.count('-')))\n", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "from collections import Counter,defaultdict,deque\nfrom heapq import heappop,heappush\nfrom bisect import bisect_left,bisect_right \nimport sys,math,itertools,fractions\nsys.setrecursionlimit(10**8)\nmod = 10**9+7\nINF = float('inf')\ndef inp(): return int(sys.stdin.readline())\ndef inpl(): return list(map(int, sys.stdin.readline().split()))\n\ns = input()\nres = 0\nfor x in s:\n    if x == '+':\n        res += 1\n    else:\n        res -= 1\nprint(res)", "passed": true, "time": 0.15, "memory": 14200.0, "status": "done"}, {"code": "s = list(input())\na = s.count(\"+\")\nb = s.count(\"-\")\nprint((a - b))\n", "passed": true, "time": 0.21, "memory": 14172.0, "status": "done"}, {"code": "#ABC081A\ns = input()\nprint(s.count(\"+\")-s.count(\"-\"))", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "fugo=input().rstrip()\nj=0\nfor i in fugo:\n  if i==(\"+\"):\n    j+=1\n  else:\n    j-=1\n    \nprint (j)", "passed": true, "time": 0.24, "memory": 14332.0, "status": "done"}, {"code": "S=input()\nprint(S.count(\"+\")-S.count(\"-\"))", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "import sys\ndef input(): return sys.stdin.readline().rstrip()\n\n\ndef main():\n    S=input()\n    print(S.count('+')-S.count('-'))\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "s = input()\nans = 0\nfor i in s:\n    if i == '+':\n        ans += 1\n    else:\n        ans -= 1\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools\nfrom collections import deque\n\nsys.setrecursionlimit(10**7)\ninf = 10**20\nmod = 10**9 + 7\n\nDR = [1, -1, 0, 0]\nDC = [0, 0, 1, -1]\n\ndef LI(): return [int(x) for x in sys.stdin.readline().split()]\ndef LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]\ndef LF(): return [float(x) for x in sys.stdin.readline().split()]\ndef LS(): return sys.stdin.readline().split()\ndef I(): return int(sys.stdin.readline())\ndef F(): return float(sys.stdin.readline())\ndef S(): return input()\n     \ndef main():\n    s = S()\n    t = 0\n    for c in s:\n        if c == '+':\n            t += 1\n        else:\n            t -= 1\n    print(t)\n\nmain()\n\n", "passed": true, "time": 0.15, "memory": 14320.0, "status": "done"}, {"code": "s = input()\ncnt = 0\nfor i in range(4):\n    if s[i]==\"+\":\n        cnt +=1\n    else:\n        cnt -=1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "S = input()\nprint(S.count('+') - S.count('-'))", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "S=input().rstrip()\nprint(S.count(\"+\")-S.count(\"-\"))", "passed": true, "time": 0.16, "memory": 14212.0, "status": "done"}, {"code": "#!/usr/bin/env pypy3\n\ndef main():\n    s = input()\n    ans = 0\n\n    for i in range(4):\n        if s[i] == '+':\n            ans += 1\n        elif s[i] == '-':\n            ans -= 1\n    \n    print(ans)\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "S = input()\nprint(0 + S.count('+') - S.count('-'))", "passed": true, "time": 0.16, "memory": 14180.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\n\ndef main():\n    S = input()\n    print((S.count(\"+\") - S.count(\"-\")))\n\n\nmain()\n", "passed": true, "time": 0.17, "memory": 14184.0, "status": "done"}, {"code": "S = input()\n\nprint(S.count('+') - S.count('-'))", "passed": true, "time": 0.22, "memory": 14216.0, "status": "done"}, {"code": "S = list(input())\ncount = 0\nfor i in range(4):\n    if S[i] == '+':\n        count = count + 1\n    elif S[i] == '-':\n        count = count - 1\nprint(count)", "passed": true, "time": 0.16, "memory": 14228.0, "status": "done"}, {"code": "*S, = input()\n\nn = sum([1 for s in S if s == '+'])\nprint(n - (len(S) - n))", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "S = input()\nprint(0+S.count(\"+\")-S.count(\"-\"))", "passed": true, "time": 0.24, "memory": 14264.0, "status": "done"}, {"code": "s = input()\n \nprint(-4 + 2 * s.count(\"+\"))", "passed": true, "time": 0.34, "memory": 14184.0, "status": "done"}, {"code": "s = input()\n\nans = 0\n\nfor x in s:\n    if x == \"+\":\n        ans += 1\n    else:\n        ans -= 1\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14136.0, "status": "done"}, {"code": "s = input()\ncnt = 0\nfor i in range(len(s)):\n    cnt = cnt+1 if s[i] == '+' else cnt-1\nprint(cnt)", "passed": true, "time": 0.16, "memory": 14324.0, "status": "done"}, {"code": "s=input()\nans=0\nfor i in s:\n  if i==\"+\":\n    ans+=1\n  else:\n    ans-=1\nprint(ans)", "passed": true, "time": 0.15, "memory": 14376.0, "status": "done"}, {"code": "S = input()\nans = 0\nfor i in range(len(S)):\n  if S[i] == '+':\n    ans += 1\n  else:\n    ans -= 1\nprint(ans)", "passed": true, "time": 0.15, "memory": 14312.0, "status": "done"}, {"code": "S = input()\ncount = 0\n\nfor i in range(len(S)):\n  if S[i] == \"+\":\n    count += 1\n  else:\n    count -= 1\nprint(count)", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "s = input()\na = s.count('+')\nb = s.count('-')\nprint(a - b)", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "s = input()\nx = 0\nfor i in range(4):\n  if s[i] == \"+\":\n    x += 1\n  else:\n    x -= 1\nprint(x)", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "s = input()\ncnt = 0\nfor i in range(len(s)):\n    cnt = cnt+1 if s[i] == '+' else cnt-1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\nword = input()\nans = 0\nfor i in word:\n    if i == '+':\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "S = input()\n\nprint((S.count('+') - S.count('-')))\n", "passed": true, "time": 0.15, "memory": 14148.0, "status": "done"}, {"code": "s=list(input())\n\nans=0\nfor i in s:\n    if i=='+':\n        ans+=1\n    else:\n        ans-=1\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14200.0, "status": "done"}, {"code": "S = input()\nans = 0\nfor i in range(4):\n  if S[i] == \"+\":\n    ans += 1\n  elif S[i] == \"-\":\n    ans -= 1\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14072.0, "status": "done"}, {"code": "s=input()\nprint(s.count(\"+\")-s.count(\"-\"))", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "s = input()\n\nans = 0\nfor i in range(4):\n  if s[i] == '+':\n    ans += 1\n  else:\n    ans -= 1\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n# \u6a19\u6e96\u5165\u529b\u3092\u53d6\u5f97\nS = input()\n\n# \u6c42\u89e3\u51e6\u7406\nans = S.count(\"+\") - S.count(\"-\")\n\n# \u7d50\u679c\u51fa\u529b\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "word = input()\nans = 0\nfor i in word:\n    if i == '+':\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14348.0, "status": "done"}, {"code": "S = list(input())\ncount = 0\nfor i in range(len(S)):\n    if S[i] == \"+\":\n        count += 1\n    else:\n        count -= 1\n\nprint(count)", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "s = input()\ncnt = 0\nfor i in range(len(s)):\n    cnt = cnt+1 if s[i] == '+' else cnt-1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "li = list(input())\nn = 0\nfor i in li:\n    if i == '+':\n        n += 1\n    elif i == '-':\n        n -= 1\n\nprint(n)", "passed": true, "time": 0.19, "memory": 14136.0, "status": "done"}, {"code": "import sys\ninput = sys.stdin.readline\n\ns = input()\nans = 0\nfor i in range(4):\n    if s[i] == '+':\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)", "passed": true, "time": 0.49, "memory": 14288.0, "status": "done"}, {"code": "S = list(input())\nnum=0\nfor s in S:\n       if s==\"+\":num+=1\n       else :num-=1\nprint(num)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "a=input()\nprint(a.count('+')-a.count('-'))", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "import sys\nimport math\n\n#https://atcoder.jp/contests/agc008/submissions/15248942\nsys.setrecursionlimit(10 ** 8)\nini = lambda: int(sys.stdin.readline())\ninm = lambda: map(int, sys.stdin.readline().split())\ninl = lambda: list(inm())\nins = lambda: sys.stdin.readline().rstrip()\ndebug = lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))\n\nS = input()\n\nans = 0\nfor c in S:\n    if c == '+':\n        ans += 1\n    else:\n        ans -= 1\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14152.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nimport sys\ndef input(): return sys.stdin.readline().rstrip()\n\n\ndef main():\n    S=input()\n    print(S.count('+')-S.count('-'))\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "s = input()\n\nres = 0\nfor i in range(4):\n  if s[i] == \"+\":\n    res += 1\n  else:\n    res -= 1\nprint(res)", "passed": true, "time": 0.23, "memory": 14260.0, "status": "done"}, {"code": "S = input()\n\nprint(0 + S.count(\"+\") - S.count(\"-\"))", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "S = list(input())\nans = 0\nfor s in S:\n  if s == '+':\n    ans += 1\n  else:\n    ans -= 1\nprint(ans)", "passed": true, "time": 0.24, "memory": 14108.0, "status": "done"}, {"code": "a=input()\nb=0\nif a[0]==\"+\":\n  b=b+1\nif a[1]==\"+\":\n  b=b+1\nif a[2]==\"+\":\n  b=b+1\nif a[3]==\"+\":\n  b=b+1\nprint((b-2)*2)", "passed": true, "time": 0.22, "memory": 14312.0, "status": "done"}, {"code": "string = input()\nsum = 0\nfor a in string:\n  if a == '+':\n    sum += 1\n  elif a == '-':\n    sum -= 1\nprint(sum)", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "S = input()\nprint((S.count(\"+\")-S.count(\"-\")))\n", "passed": true, "time": 0.25, "memory": 14192.0, "status": "done"}, {"code": "from collections import Counter\nS = list(input())\nS = Counter(S)\nans = S[\"+\"]-S[\"-\"]\nprint(ans)\n", "passed": true, "time": 0.25, "memory": 14072.0, "status": "done"}, {"code": "s=input()\nans=0\nfor i in range(4):\n    if s[i]=='+': ans+=1\n    else: ans-=1\n\nprint(ans)", "passed": true, "time": 0.24, "memory": 14324.0, "status": "done"}, {"code": "s = input()\nresult = s.count('+') - 1 * (s.count('-'))\nprint(result)", "passed": true, "time": 0.15, "memory": 14304.0, "status": "done"}, {"code": "s = input()\nprint(2 * s.count('+') - 4)", "passed": true, "time": 0.17, "memory": 14044.0, "status": "done"}, {"code": "\nS=input()\ncnt=0\ncnt = cnt + S.count('+')-S.count('-')\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "l = input()\ns = 0\nfor c in l:\n  if c=='+':\n    s += 1\n  elif c=='-':\n    s -= 1\nprint(s)\n\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "s = list(input())\nans = 0\nfor i in range(4):\n    if s[i] == '+':\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "s = input()\nprint(s.count(\"+\")-s.count(\"-\"))", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "s = input()\nn = 0\nfor i in range(4):\n  if s[i] == '+': n += 1\n  if s[i] == '-': n -= 1\nprint(n)", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "S = input()\ncnt = 0\nfor s in S:\n    if s == \"+\":\n        cnt +=1\n    if s == \"-\":\n        cnt -= 1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "def main():\n    s = input()\n    print(s.count(\"+\") - s.count(\"-\"))\n\n\nmain()", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "s = list(input())\nprint(s.count(\"+\")-s.count(\"-\"))", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "S = input()\nprint(S.count('+')-S.count('-'))", "passed": true, "time": 0.14, "memory": 14024.0, "status": "done"}, {"code": "s=input()\nans=0\nfor i in s:\n    if i==\"+\":\n        ans+=1\n    else:\n        ans-=1\nprint(ans)", "passed": true, "time": 0.23, "memory": 14108.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nS = input()\nans = 0\nfor s in S:\n    if s =='+':\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "s = input()\n\nplus_cnt = s.count(\"+\")\nminus_cnt = s.count(\"-\")\n\nans = plus_cnt - minus_cnt\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "li = list(map(str, input()))\nS=0\nfor i in range(4):\n  if li[i]==\"+\":\n    S=S+1\n  else:\n    S=S-1\nprint(S)", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "S = input()\nans = 0\nfor s in S:\n  if s == \"-\":\n    ans -= 1\n  else:\n    ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "S = input()\n\nplus = S.count('+')\nmins = S.count('-')\n\nprint(plus - mins)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "result = 0\nfor i in input():\n    if i == '+':\n        result += 1\n    else:\n        result -= 1\n\nprint(result)\n", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "s = input()\ncnt = 0\nfor i in range(len(s)):\n    cnt = cnt+1 if s[i] == '+' else cnt-1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "S = input()\na = S.count('+')\nb = S.count('-')\nprint(a-b)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n\ndef get_input() -> str:\n    \"\"\"\n    \u6a19\u6e96\u5165\u529b\u3092\u53d6\u5f97\u3059\u308b.\n\n    Returns:\\n\n        str: \u6a19\u6e96\u5165\u529b\n    \"\"\"\n    S = input()\n\n    return S\n\n\ndef main(S: str) -> None:\n    \"\"\"\n    \u30e1\u30a4\u30f3\u51e6\u7406.\n\n    Args:\\n\n        S (str): \u6587\u5b57\u5217(|S| = 4, \u5404\u6587\u5b57\u306f\"+\"\u307e\u305f\u306f\"-\")\n    \"\"\"\n    # \u6c42\u89e3\u51e6\u7406\n    ans = S.count(\"+\") - S.count(\"-\")\n\n    # \u7d50\u679c\u51fa\u529b\n    print(ans)\n\n\ndef __starting_point():\n    # \u6a19\u6e96\u5165\u529b\u3092\u53d6\u5f97\n    S = get_input()\n\n    # \u30e1\u30a4\u30f3\u51e6\u7406\n    main(S)\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "s = list(input())\nprint(s.count('+')-s.count('-'))", "passed": true, "time": 0.15, "memory": 14020.0, "status": "done"}, {"code": "S = input()\nans = 0\nfor i in range(4):\n    if S[i] == '+':\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)\n", "passed": true, "time": 0.23, "memory": 14060.0, "status": "done"}, {"code": "s=input()\na=s.count(\"+\")\nb=s.count(\"-\")\nans=a-b\nprint(ans)", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "import sys\n\nS = sys.stdin.readline().strip()\nans = 0\nfor s_i in S:\n    if s_i == \"+\":\n        ans += 1\n    else:\n        ans -= 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\ndef main():\n    s = input()\n    ans = 0\n\n    for i in range(4):\n        if s[i] == '+':\n            ans += 1\n        elif s[i] == '-':\n            ans -= 1\n    \n    print(ans)\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "print(eval(\"0\"+input().replace(\"+\",\"+1\").replace(\"-\",\"-1\")))", "passed": true, "time": 0.19, "memory": 14144.0, "status": "done"}, {"code": "s=input()\n\nnum=0\n\nfor i in s:\n    if i==\"+\":\n        num+=1\n    else:\n        num-=1\n\nprint(num)", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "s=input()\nans=0\nfor i in range(4):\n  if s[i]=='+':\n    ans+=1\n  else:\n    ans+=-1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "S = str(input())\nN = len(S)\nans = 0\nfor i in range(N):\n  if S[i] == \"+\":\n    ans +=1\n  else:\n    ans -=1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}]