Open littlehug opened 7 years ago
A magic expression tests if an integer M satisfies all the following conditions.
Now given an integer M, please assign the magic expression to another integer N and print the value of N.
The input contains one integer M.
Print the value of N, which is the result of the magic expression of M.
514
1
0
1729
10000
Task Description
A magic expression tests if an integer M satisfies all the following conditions.
Now given an integer M, please assign the magic expression to another integer N and print the value of N.
Input
The input contains one integer M.
Output
Print the value of N, which is the result of the magic expression of M.
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
Sample Input 3
Sample Output 3
Sample Input 4
Sample Output 4