#include<stdio.h>#include<math.h>int main(){ double n,p,k; while(scanf("%lf %lf",&n,&p)!=EOF) { k=pow(p,1.0/n); printf("%0.0lf\n",k); } return 0;}