#abc176b. [abc176_b]Multiple of 9
[abc176_b]Multiple of 9
Problem Statement
An integer is a multiple of if and only if the sum of the digits in the decimal representation of is a multiple of .
Determine whether is a multiple of .
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
If is a multiple of , print Yes
; otherwise, print No
.
Sample Input 1
123456789
Sample Output 1
Yes
The sum of these digits is , which is a multiple of , so is a multiple of .
Sample Input 2
0
Sample Output 2
Yes
Sample Input 3
31415926535897932384626433832795028841971693993751058209749445923078164062862089986280
Sample Output 3
No