Functions and
are defined below.
where
and
are integers such that
and
.
where
is Euler's totient function.
Given an integer , output
.
Input
A positive integer .
Output
The value of .
Constraints
Average scoring is used for this problem.
The first test case is the sample test below.
Afterwards, there will be 50 test cases worth 2 points each.
In all test cases, .
Sample Input
5
Sample Output
6
Comments
What is f(x) if it satisfies both?
f(x) will be 1