First K Perfect Squares


Submit solution

Points: 100
Time limit: 2.0s
Memory limit: 256M

Author:
Problem types

Print the first \(k\) perfect squares, beginning with \(0^2\).

Input

One positive integer \(k\).

The input satisfies:

  • \(1 <= k <= 1000\)

Output

Print \(0^2,1^2,\ldots,(k-1)^2\) in order, separated by spaces.

Example

Input
10
Output
0 1 4 9 16 25 36 49 64 81

Comments

There are no comments at the moment.