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

#GL0000078. Đếm số cặp có BCNN bằng N (LCM Cardinality)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Đếm số cặp có BCNN bằng N (LCM Cardinality)

LCM Cardinality

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Given a positive integer NN, count the pairs of positive integers (a,b)(a,b) satisfying a≤ba\le b and lcm⁡(a,b)=N\operatorname{lcm}(a,b)=N. Pairs differing only in order count once; the pair (N,N)(N,N) also counts once. This count is the LCM cardinality of NN.

Input

One positive integer NN.

Output

Print NN and CC separated by one space, where CC is the required number of pairs.

Subtasks

  • Subtask 1 (20 points): 1≤N≤1031\le N\le10^3.

  • Subtask 2 (30 points): 1≤N≤1061\le N\le10^6.

  • Subtask 3 (50 points): 1≤N≤2⋅1091\le N\le2\cdot10^9.

Examples

Input

12

Output

12 8

Explanation

The eight unordered pairs are (1,12)(1,12), (2,12)(2,12), (3,4)(3,4), (3,12)(3,12), (4,6)(4,6), (4,12)(4,12), (6,12)(6,12) and (12,12)(12,12); each has LCM 1212.