Preparando MOJI

Prime factorization

3000ms 262144K

Description:

You are given a positive integer n. Output its prime factorization.

If n = a1b1 a2b2 ... akbk (bi > 0), where ak are prime numbers, the output of your program should look as follows: a1*...*a1*a2*...*a2*...*ak*...*ak, where the factors are ordered in non-decreasing order, and each factor ai is printed bi times.

Input:

The only line of input contains an integer n (2 ≤ n ≤ 10000).

Output:

Output the prime factorization of n, as described above.

Sample Input:

245

Sample Output:

5*7*7

Sample Input:

19

Sample Output:

19

Informação

Codeforces

Provedor Codeforces

Código CF162C

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:35:08

Relacionados

Nada ainda