#JSUTCPC2026D. Shimokita Function II —— 下北泽函数 II

Shimokita Function II —— 下北泽函数 II

Problem Description

Just indulge in your own fantasy!

Given an elliptic equation Γ:t=x2+xy+y2\Gamma:t=x^2+xy+y^2 satisfying t>0t > 0, if the trajectory of the ellipse Γ\Gamma passes through a point (x0,y0)(x_0,y_0) where both the horizontal and vertical coordinates are integers, then tt is called an "elliptic number". For example, 77 is an "elliptic number" because (−1,3)(-1,3) satisfies the condition, while 66 is not an "elliptic number".

Given a number nn, find the sum of the factors of each number ii from 11 to nn that are "elliptic number".

Input

Input a positive integer nn satisfying 1⩽n⩽1×1041 \leqslant n \leqslant 1\times 10^4.

Output

Output a line containing nn integers, separated by spaces.

Samples

6
1 1 4 5 1 4

Note

When i=4i=4, its factors are 1,2,41, 2, 4, where 11 and 44 are "elliptic number", so the 44th digit is output as 55.

When i=6i=6, its factors are 1,2,3,61, 2, 3, 6, where 11 and 33 are "elliptic number", so the 66th digit outputs 44.