X-factor Chains
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 64 M,其他语言128 M
64bit IO Format: %lld

题目描述

Given a positive integer X, an X-factor chain of length m is a sequence of integers,

1 = X0, X1, X2, …, Xm= X

satisfying

Xi < Xi+1 and Xi | Xi+1 where a | b means a perfectly divides into b.

Now we are interested in the maximum length of X-factor chains and the number of chains of such length.

输入描述:

The input consists of several test cases. Each contains a positive integer X (X ≤ 220).

输出描述:

For each test case, output the maximum length and the number of such X-factors chains.

示例1

输入

复制
2
3
4
10
100

输出

复制
1 1
1 1
2 1
2 2
4 6