int main(){
	int n=({long s[18];fstat(0,&s);s[6];})-1;
	char c;
	pread(0,&c,1,n-1);
	if(n==1&&c=='2'){
		write(1,"0\nYes",5);
	}else if(c&1){
		write(1,"1\nNo",4);
	}else{
		write(1,"0\nNo",4);
	}
	_exit(0);
}