1#include <bits/stdc++.h>2using namespace std;3int main() {4 int n;cin>>n;5 //444, 447, 474, 477, 744, 747, 774, 7776 if(n%4==0||n%7==0||n%47==0||n%447==0||n%444==0||n%474==0||n%477==0||n%747==0||n%774==0||n%777==0) {7 cout<<"YES\n";8 }9 else10 cout<<"NO\n";11}