//POJ 2019
//2012-8-17
//by wxping
#include <iostream>
#include <math.h>
using namespace std;
//double的储存范围在10^(-307)~ 10^(308),但是只能精确前16位,慎用之
//求x的n次平方根除了用log之外,还可以用pow(x,1.0/n);
int main()
{
double n,p;
while(cin >> n >> p)
{
cout<<pow(p,1.0/n)<<endl;
}
return 0;
}