100 atcoder#ABC176B. [ABC176B] Multiple of 9
[ABC176B] Multiple of 9
Score : points
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
.
123456789
Yes
The sum of these digits is , which is a multiple of , so is a multiple of .
0
Yes
31415926535897932384626433832795028841971693993751058209749445923078164062862089986280
No