Lucky Number
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Fractional number, in the form of a finite decimal is called "happy", if the sum of digits of this number before the decimal point equals to the sum of digits after the decimal point. Given a rational number written as a finite decimal. Determine is it happy.
Input
One decimal number x, not exceeding 10^6
by absolute value. The fractional part of the number contains at least one and no more than six digits.
Output
Print Yes, if number x is happy, and No otherwise.
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 34%