fin = File.open("1.txt", "r")
fout = File.open("2.txt", "w")
s = fin.read.to_i
tmp = s
t = Array.new
ans = sprintf("%d=", s)
for i in 2..tmp
while s % i == 0 && s != 1
t << i
s /= i
end
end
for i in 1...t.length-1
add = sprintf("%d*", t[i])
ans += add
end
ans += t[-1].to_s
fout.write(ans)
fin.close
fout.close