PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000020. Phân tích thừa số nguyên tố có nhãn (Prime Factorization)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Phân tích thừa số nguyên tố có nhãn (Prime Factorization)

Prime Factorization

Source: Aizu Online Judge

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer n≥2n\ge2, factor it into primes, retaining all repeated occurrences in non-decreasing order. The required formatting is specific: print the original integer first, followed by a colon and one space before the factor list.

Input

One line contains integer nn.

Output

Print n: with nn replaced by the input value, followed by one space and the prime factors separated by spaces.

Subtasks

  • Subtask 1 (20 points): 2≤n≤10002\le n\le 1000.
  • Subtask 2 (30 points): 2≤n≤1000002\le n\le 100000.
  • Subtask 3 (50 points): 2≤n≤10000000002\le n\le 1000000000.

Examples

Input

12

Output

12: 2 2 3

Explanation

Divide 1212 by 22 to obtain 66, divide again by 22 to obtain 33, and keep the final prime 33. With the 12: prefix, the result is 12: 2 2 3.

Input

126

Output

126: 2 3 3 7

Explanation

Since 126=2⋅63=2⋅3⋅21=2⋅3⋅3⋅7126=2\cdot63=2\cdot3\cdot21=2\cdot3\cdot3\cdot7, list the sorted factors after the 126: prefix.