#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin>>x;
if(x % 2 == 0 || x % 3 == 0){
cout<<"Y"<<endl;
}else{
cout<<"N"<<endl;
}
}
/**************************************************************
Problem: 1673
User: admin
Language: C++
Result: Accepted
Time:23 ms
Memory:2072 kb
****************************************************************/