#C14900. Calculate Powers

    ID: 44601 Type: Default 1000ms 256MiB

Calculate Powers

Calculate Powers

You are given a list of integers. For each integer \( n \), you are to compute its square \( n^2 \) and its cube \( n^3 \). The input will start with an integer \( N \) representing the number of integers, followed by \( N \) space-separated integers.

Your task is to output \( N \) lines. Each line should contain three integers: the original number, its square, and its cube, separated by a single space.

inputFormat

The first line contains an integer \( N \) (\( 1 \leq N \leq 10^5 \)), the number of integers. The second line contains \( N \) space-separated integers \( n_i \) (\( -10^4 \leq n_i \leq 10^4 \)).

outputFormat

Output \( N \) lines. Each line must contain three integers: the integer \( n \), its square, and its cube, in that order, separated by a single space.

## sample
3
1 2 3
1 1 1

2 4 8 3 9 27

</p>