LearnPy Hub
← Arena
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
solution.py
Output appears here
Harshad Number · Python Arena problem · LearnPy Hub