program 1
var x,n,s:integer;
begin
writeln ('vvedite x i n');
readln (x,n);
s:=exp(3*ln(x))+exp(5*ln(x))+exp(n*ln(x));
writeln ('s=',s);
readln
end.