#include<bits/stdc++.h>
using namespace std;
int main()
{
double n;
int m;
cin>>n;
cin>>m;
double l = -1000000,r = 1000000;
while(r-l>1e-7)
{
double x = (r+l)/2;
if(pow(x,m)<=n)
{
l = x;
}
else
{
r = x;
}
}
printf("%.6lf",r);
}