Program time limit: 1 second
Program memory limit: 512 MB
On her 21st birthday, Penny is dreaming of her future. When Penny turns a certain age $n$, she considers a good age $g$ to be one such that she can split the $n$ candle sticks of her birthday cake into $g$ even groups. For a given age that Penny is turning, determine how many good ages there are. If g is infinite, then output INFINITE.
The first and only line of input contains one integer $n$.
You should read from standard input.
In Python, you could use the line n = int(input())
.
In C or C++, you could use the line int n; scanf("%d", &n);
.
For all test cases:
Output a single integer, $g$, the number of good ages.
You should write to standard output.
In Python, you could use the line print(answer)
.
In C or C++, you could use the line printf("%d\n", answer);
.
11
2
The only good ages for Penny turning 11 are 1 and 11 itself.
5000
20
This one's up to you!.
Your program will be run on the 9 hidden test cases one after another. Your program must pass all 9 test cases to receive the marks for this question. Recall that your final score on the task is the score of your highest scoring submission.
You haven't submitted to this task.