2010: 【信息学奥赛一本通】因子分解

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:23 Solved:19

Description

输入一个数,输出其素因子分解表达式。

Input

输入一个整数 n (2≤n<100)。

Output

输出该整数的因子分解表达式。

表达式中各个素数从小到大排列。

如果该整数可以分解出因子a的b次方,当b大于1时,写做 a^b ;当b等于1时,则直接写成a。

Sample Input Copy

60

Sample Output Copy

2^2*3*5