The program reads from standard input an arithmetic expression consisting of non-negative integers, the operators +, -, *, /, %, round parentheses ( and ), and (optionally) spaces.
Print to standard output two non-negative integers separated by a space:
- the number of operands in the expression (each maximal run of consecutive digits is one operand);
- the number of operators in the expression (each character among
+,-,*,/,%is one operator).
Parentheses and spaces are not counted.