1878 Math Problem
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
chen_h is poor at math. Today, chen_h falls across a puzzle problem, so he has no choice but to appeal to you. This problem describes that:
f(x) = 5x^13 + 13x^5 + kax
input a nonegative integer k(k<10000), to find the minimal nonegative integer a, make the arbitrary integer x, 65|f(x) if no exists that a, then print "no".
Input
The input contains several test cases. Each test case consists of a nonegative integer k.
Output
The output contains a string "no", if you can't find a, or you should output a line contains the a.
Sample
Input
11
100
9999
Output
22
no
43
Comments