Problem

4 /4


Squares of n numbers

Problem

Given an integer N, print all squares of natural numbers not greater than N, in ascending order. Of the arithmetic operations, only addition and subtraction are allowed.

Input: Enter a natural number.

Output: print the answer to the problem.
 
Examples
# Input Output
1 50 1 4 9 16 25 36 49