#include using namespace std; int main(){ int y; cin>>y; cout<<((y%4000||(y%40&&y%100!=0))?"YES":"NO")<<'\n'; }