program fenjie;
var t,k,n:longint;
s,o:string;
begin
readln(n);
write(n,'=');
for t:=2 to trunc(sqrt(n)) do
begin
if n mod t=0 then {试除}
repeat
n:=n div t;
str(t,o);
s:=s+o+'*'; {结果用字符串存了,便于输出}
until n mod t<>0;
end;
delete(s,length(s),1);
writeln(s);
end.