#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%4==0&&a/100%4==0) cout<<"Y"<<endl; else cout<<"N"<<endl; return 0; }