{"raw_statement":[{"iden":"problem statement","content":"There is always an integer in Takahashi's mind.\nInitially, 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$.\nThe 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.\nFind the integer in Takahashi's mind after he eats all the symbols."},{"iden":"constraints","content":"*   The length of $S$ is $4$.\n*   Each character in $S$ is `+` or `-`."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S$"},{"iden":"sample input 1","content":"+-++"},{"iden":"sample output 1","content":"2\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$."},{"iden":"sample input 2","content":"\\-+--"},{"iden":"sample output 2","content":"\\-2"},{"iden":"sample input 3","content":"\\----"},{"iden":"sample output 3","content":"\\-4"}],"translated_statement":[{"iden":"problem statement","content":"高桥的脑海中总是有一个整数。\n最初，高桥脑海中的整数是 $0$。高桥现在将依次处理四个符号，每个符号为 `+` 或 `-`。当他处理 `+` 时，他脑海中的整数增加 $1$；当他处理 `-` 时，他脑海中的整数减少 $1$。\n高桥将要处理的符号以字符串 $S$ 给出。$S$ 的第 $i$ 个字符是他将要处理的第 $i$ 个符号。\n请找出高桥处理完所有符号后，他脑海中的整数。"},{"iden":"constraints","content":"* $S$ 的长度为 $4$。\n* $S$ 中的每个字符均为 `+` 或 `-`。"},{"iden":"input","content":"输入从标准输入按以下格式给出：\n\n$S$"},{"iden":"sample input 1","content":"+-++"},{"iden":"sample output 1","content":"2\n\n* 最初，高桥脑海中的整数是 $0$。\n* 他要处理的第一个符号是 `+`。处理后，他脑海中的整数变为 $1$。\n* 他要处理的第二个符号是 `-`。处理后，他脑海中的整数变为 $0$。\n* 他要处理的第三个符号是 `+`。处理后，他脑海中的整数变为 $1$。\n* 他要处理的第四个符号是 `+`。处理后，他脑海中的整数变为 $2$。\n\n因此，高桥处理完所有符号后，他脑海中的整数是 $2$。"},{"iden":"sample input 2","content":"\\-+--"},{"iden":"sample output 2","content":"\\-2"},{"iden":"sample input 3","content":"\\----"},{"iden":"sample output 3","content":"\\-4"}],"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}