using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _6._6._1
{
class Program
{
static void Main(string[] args)
{
int n, i;
n = Int32.Parse(Console.ReadLine());
for (i = 2; i < n; i++)
{
while (n % i == 0)/*质因数,也就是从最小的开始遍历作为乘数,所以,从小的开始,
往后,每次将小的除近,所以他一定是质数,并不需要再另行判断*/
{
n /= i;//
Console.Write("{0}", i);
if (n != 1)
Console.Write("*");
else
break;
}
}
Console.Write("{0}", n);
}
}
}