/*
5 6
15625 + 0
1.2 3
1 + 0.728
-2 3
输入不合要求。
3 1.8
7 + 0.224674
q
Press any key to continue
*/
#include <stdio.h>
#include <math.h>
int main(void) {
double x,y,dx;
int ix;
while(scanf("%lf%lf",&x,&y) == 2) {
if(x < 0) {
printf("输入不合要求。\n");
continue;
}
dx = pow(x,y);
ix = (int)dx;
dx -= ix;
printf("%d + %g\n",ix,dx);
}
return 0;
}