Score : $200$ points
Let $S(n)$ denote the sum of the digits in the decimal notation of $n$. For example, $S(101) = 1 + 0 + 1 = 2$.
Given an integer $N$, determine if $S(N)$ divides $N$.
Input is given from Standard Input in the following format:
$N$
If $S(N)$ divides $N$, print Yes
; if it does not, print No
.
12
Yes
In this input, $N=12$. As $S(12) = 1 + 2 = 3$, $S(N)$ divides $N$.
101
No
As $S(101) = 1 + 0 + 1 = 2$, $S(N)$ does not divide $N$.
999999999
Yes