#include using namespace std; int main() { int k,m,x,n; while(cin>>n) { k=1; x=2; if(n%2==0||n==1) cout<<"2^? mod "<