#include using namespace std; int main(){ string S;cin>>S; cout<<(S.back()%2?"1 ":"0 ")<<(S=="2"?"Yes":"No")<