1 #include<stdio.h> 2 #include<math.h> 3 4 int main() 5 { 6 double n,p ; 7 while(scanf("%lf%lf",&n,&p ) == 2) 8 printf("%d\n",(int)(pow(p,1/n)+0.5)); 9 return 0 ; 10 }