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.
cHJvZ3JhbSBrX2RvX25fdGVqOwp2YXIgaSxrLG4seTogaW50ZWdlcjsKICAgIApiZWdpbgogICAgcmVhZChrLCBuKTsKICAgIHdyaXRlKGssJ14nLG4sJz0nKTsKCXkgOj0gMTsKCWZvciBpIDo9IDEgdG8gbiBkbwoJCXkgOj0geSAqIGs7CiAgICB3cml0ZWxuKHkpOwplbmQu