program k_do_n_tej;
var i,k,n,y: integer;
begin
read(k, n);
write(k,'^',n,'=');
y := 1;
for i := 1 to n do
y := y * k;
writeln(y)
end.
cHJvZ3JhbSBrX2RvX25fdGVqOwp2YXIgaSxrLG4seTogaW50ZWdlcjsKICAgIApiZWdpbgogICAgcmVhZChrLCBuKTsKICAgIHdyaXRlKGssJ14nLG4sJz0nKTsKICAgIAogICAgeSA6PSAxOwogICAgZm9yIGkgOj0gMSB0byBuIGRvCiAgICAgICAgeSA6PSB5ICogazsKICAgIAogICAgd3JpdGVsbih5KQplbmQu