~/algor $ cat problems/massiv-kvadratlari
Squares of the elements
Easy
1000 ms
128 MB
24%
A positive integer $n$ and an array of $n$ integers are given. Replace every element with its square $a_{i}^{2}$ and print the resulting array.
Input
The first line contains a positive integer $n$. The second line contains $n$ integers $a_{i}$ separated by spaces.
Output
One line with $n$ integers separated by spaces.
Note
$1 \le n \le 10^{4}$
$-1000 \le a_{i} \le 1000$
Examples
Input #1
4 1 -2 3 0
Output #1
1 4 9 0
Input #2
2 -10 10
Output #2
100 100