LearnPy Hub
← Arena
EasyRating 900

Spy Number

A spy number has the same sum and product of digits (like 1124: 1+1+2+4 = 1×1×2×4). Print YES or NO.

Input

One integer n (1 ≤ n ≤ 10¹⁸).

Output

YES or NO.

Sample 1

Input
1124
Output
YES

Sample 2

Input
123
Output
YES
solution.py
Output appears here
Spy Number · Python Arena problem · LearnPy Hub