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

#SP0000026. Đếm số thừa số nguyên tố phân biệt (Count the Factors)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Đếm số thừa số nguyên tố phân biệt (Count the Factors)

Count the Factors

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Given a positive integer nn, count the number of distinct prime factors of nn. A prime that divides nn repeatedly is counted only once. For example, 45=32⋅545=3^2\cdot5 has the two distinct prime factors 33 and 55. The integer 11 has zero prime factors.

Input

One line contains positive integer nn.

Output

Print one line in the format n : k, where nn is the input integer and kk is the number of distinct prime factors, with one space between components.

Subtasks

  • Subtask 1 (20 points): 1≤n≤1001\le n\le 100.
  • Subtask 2 (30 points): 1≤n≤100001\le n\le 10000.
  • Subtask 3 (50 points): 1≤n≤10000001\le n\le 1000000.

Examples

Input

45

Output

45 : 2

Explanation

Since 45=3⋅3⋅545=3\cdot3\cdot5, the distinct prime factors form the set {3,5}\{3,5\} of size 22. Print 45 : 2.

Input

8

Output

8 : 1

Explanation

8=238=2^3 has only one distinct prime divisor, namely 22, so print 8 : 1.

Input

1

Output

1 : 0

Explanation

The integer 11 has no prime factors. Thus the count is 00 and the output is 1 : 0.