Sum of squares
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Let be the total number of sequences, consisting only of and , which sum equals to .
For a given integer find the sum of the squares of numbers for all . Print the result modulo .
Input
One positive integer .
Output
Print the value of .
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 9%