#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n/2==1||n/3==1||n/5==1||n/7==1) cout<<"Yes"; else if(n==9) cout<<"No"; else cout<<"No"; return 0; }