Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/kvadratlar-jadvali

Table of squares

Easy 1000 ms 64 MB 21%
Share

A positive integer $N$ is given. Print the squares of the numbers from $1$ to $N$ in increasing order: $1^{2}, 2^{2}, \dots, N^{2}$.

A row of squares of numbers

Input

One positive integer $N$.

Output

One line with $N$ integers separated by spaces.

Note

$1 \le N \le 100$

Examples

Input #1
3
Output #1
1 4 9
Input #2
5
Output #2
1 4 9 16 25

Sign in to submit a solution

Signing up is free and takes a minute.