Long long time ago, there was a foolish man called Yu Gong. One day, he found that the mountains around his house was really troublesome, so he decided to remove them. The work had been doing year in and year out.
It is 2030 now. With the development of technologies, the transportations have been really convenient, so the descendants of Yu Gong don't need to remove these mountains any more. Instead, they want to make the mountains more beautiful. In their opinion, the mountains are beautiful if they have a cyclical character. Furthermore, smaller the repetition period is, greater the mountains they deem.
The mountains can be considered a sequence of positive integers $a_{1},a_{2},...,a_{n}$, each of which indicates an altitude. We say the repetition period of the sequences is $k$ if $k$ is the smallest number which satisfy that for every integer $i$, $k+1 \leq i \leq n$, $a_{i}$ always equals to $a_{i-k}$. For example, the repetition period of the following sequence:1 2 3 2 1 2 3 2 1 2 3 is 4.
Now the descendants of Yu Gong want to the make mountains more beautiful by changing altitude in one position. Please tell them the smallest repetition period after changing altitude and also the number of positions they can choose to change altitude in order to reach the smallest repetition period. Note that they can change any meter (including zero) in one position.