program mn;
uses crt;
var a,n:integer;
c:real;
BEGIN
ClrScr;
Write('a,n:');
readln(a,n);
c:=exp(n*ln(a));
WRiteln(c:3:0);
readln;
END.