Check the correctness of an arithmetic equality that can contain only decimal digits and the signs '+' and '-' (unary and binary). The equality should contain exactly one '='. The equality should not contain other characters including spaces. Leading zeros are allowed. Unary operations can be used multiple times in a row.
Examples of correct, incorrect, and malformed equalities:
The first line of input contains the equality (up to $$$3 \cdot 10^6$$$ characters, ASCII codes from 32 to 127 inclusive). The line ends with the end of line.
Output 'YES' if the equality is correct, 'NO' if it is incorrect but well-formed, and 'ERROR' if the equality is malformed.
-5+10+3=2+6
YES
2+2=5
NO
2*2=4
ERROR