Water Problems 3

Time Limit : 1 Second

Memory Limit : 256 MB

Submission: 69

Solved: 35

Description

skyjiange loves lucky numbers very much. Lucky numbers are positive integers whose decimal representation contains only lucky digits 4 and 7. For example, 4747 are lucky numbers while 4285 are not.


skyjiange calls a number almost lucky if it could be divided by some lucky number. Help him find out if the given number n is almost lucky.

Input

each line contains a integer n(1<=n<=1000), the number that needs to be checked, process to the EOF.

Output

print "YES" for almost lucky. Otherwise, print "NO".


 

sample input
47
16
78
sample output
YES
YES
NO
hint
source
© 2015 HUST ACMICPC TEAM. All Right Reserved.