eolymp
bolt
Try our new interface for solving problems
Problems

Number of operations

Number of operations

Find the total quantity of operations of addition $(+)$, subtraction $(-)$ and multiplication $(*)$ in the given arithmetic expression. \InputFile The arithmetic expression is given in one line, that does not contain brackets and spaces. The number of symbols does not exceed $1000$ in expression. \OutputFile Print the number of the specified operations.
Time limit 1 second
Memory limit 128 MiB
Input example #1
-1+2*3+a
Output example #1
3
Input example #8
+5-2+4-m/n*2:4
Output example #8
4
Source SFE-2010 Variant 1