Skip to content
UPEEC

Prime Factorisation

Medium#math#primes· solved by 0 · time limit 2.0 s

Write nn as a product of primes in increasing order, using p^k when a prime appears more than once, joined by x. For example 360=360 = 2^3 x 3^2 x 5.

Input

A single integer n≥2n \ge 2.

Output

The factorisation.

Constraints

2≤n≤10122 \le n \le 10^{12}

Sample 1

Input

360

Output

2^3 x 3^2 x 5

Sample 2

Input

97

Output

97

Sign in or join free to run and submit your solution.