/*
Created on: 2012-11-1
*
Author: chuchuan
*/
#include<stdio.h>
double power(double number, int n);
int main() {
int n;
double number;
while (scanf("%lf %d", &number, &n) != EOF) {
printf("%.5lf\n", power(number, n));
}
return 0;
}
double power(double x, int n) {
if (n < 0) {
n = -n;
return 1 / power(x, n);
}
if (0 == n)
return 1;
if (1 == n)
return x;
if (0 == n % 2)
return power(x, n / 2) * power(x, n / 2);
else
return x * power(x, n - 1);
}