#include<iostream>
using namespace std;
int main(){
int num;
cin>>num;
int first = num;
int temp = num%10;
if( (first %4 ==0) || (temp ==7 ) || (temp ==4) ){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCl7CgkKCWludCBudW07CgljaW4+Pm51bTsKCQoJaW50IGZpcnN0ID0gbnVtOwoJaW50IHRlbXAgPSBudW0lMTA7CgkKCWlmKCAgKGZpcnN0ICU0ID09MCkgfHwgKHRlbXAgPT03ICkgfHwgKHRlbXAgPT00KSAgKXsKCQljb3V0PDwiWUVTIjw8ZW5kbDsKCX1lbHNlewoJCWNvdXQ8PCJOTyI8PGVuZGw7Cgl9CgkKCXJldHVybiAwOwp9Cg==