代码如下
#include<bits/stdc++.h>
using namespace std;
long long c,t,k;
int main(){
scanf("%d %d",&c,&t);
if(t==0&&c!=0)k=1;
else k=pow(c,t);
if(k<0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
if(k%2!=0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
return 0;
}