Takahashi has an integer in his mind, which initially equals 0. He will consume four symbols, each of which can be either + or -. When he consumes a +, the integer increases by 1, and when he consumes a -, the integer decreases by 1.
Given a string S containing exactly four characters (+ or -), representing the symbols Takahashi will consume, your task is to determine the final value of the integer in his mind after he has consumed all the symbols.
Input Format
A single string S of length 4, consisting of characters + and -.
Output Format
Print a single integer, which is the final value of the integer in Takahashi's mind.
Example
Input
text
++--
Output
text
0
Input
text
+-+-
Output
text
0
Input
text
++++
Output
text
4
Input
text
----
Output
text
-4
Solution Location
Please place your solution in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.