100 #ABC176B. [ABC176B] Multiple of 9

[ABC176B] Multiple of 9

Score : 200200 points

Problem Statement

An integer NN is a multiple of 99 if and only if the sum of the digits in the decimal representation of NN is a multiple of 99.

Determine whether NN is a multiple of 99.

Constraints

  • 0N<102000000 \leq N < 10^{200000}
  • NN is an integer.

Input

Input is given from Standard Input in the following format:

NN

Output

If NN is a multiple of 99, print Yes; otherwise, print No.

123456789
Yes

The sum of these digits is 1+2+3+4+5+6+7+8+9=451+2+3+4+5+6+7+8+9=45, which is a multiple of 99, so 123456789123456789 is a multiple of 99.

0
Yes
31415926535897932384626433832795028841971693993751058209749445923078164062862089986280
No