EasyRating 900
Harshad Number
A Harshad number is divisible by the sum of its digits. Print YES or NO.
Input
One integer n (1 ≤ n ≤ 10¹⁸).
Output
YES or NO.
Sample 1
Input
18
Output
YES
Sample 2
Input
19
Output
NO
Output appears hereOne integer n (1 ≤ n ≤ 10¹⁸).
YES or NO.
18
YES
19
NO
Output appears here