#include #include using namespace std; double p( double x,double y){ double c=x; double i; for (i=0;i>a>>n; b=p(a,n); c=fmod(b,m); printf("%.0lf\n%.0lf\n",m,c); return 0; }