First cubes

Write a program that reads a number nn, and prints 03,13,,(n1)3,n30^3,1^3,\dots,(n-1)^3,n^3.

Input

Input consists of a natural number nn.

Output

Print a line with 03,13,,(n1)3,n30^3,1^3,\dots,(n-1)^3,n^3. Separate the numbers with commas.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:38:33.316Z

© Jutge.org, 2006–2026.
https://jutge.org