#include <bits/stdc++.h>
using namespace std;
int main(){
int n,s=0;
cin>>n;
int p=n;
while(p!=0)
{
s=s*10+p%10;
p/=10;
}
if(sn)
{
if(n%40&&n%100!=0||n%400==0) {cout<<"Yes"<<endl;return 0; }
else{cout<<"No"<<endl;return 0;}
}
else
cout<<"No"<<endl;
return 0;
}