Problem G
A List Game

You are playing the following simple game with a friend:
-
The first player picks a positive integer
. -
The second player gives a list of
positive integers such that , and gets points.
Write a program that plays the second player.
Input
The input consists of a single integer
Output
Write a single integer
Sample Input 1 | Sample Output 1 |
---|---|
65536 |
16 |
Sample Input 2 | Sample Output 2 |
---|---|
127381 |
3 |