#C14941. Square List

    ID: 44646 Type: Default 1000ms 256MiB

Square List

Square List

Given a list of integers, calculate the square of each integer and output the result as a list. For every integer \( x \) in the input, compute \( x^2 \) and output these values in the same order, separated by spaces.

The input will be provided through standard input (stdin) as a single line, where integers are separated by spaces. If the input is empty, your program should output an empty line.

inputFormat

A single line of space-separated integers. For example: "1 2 3 4". An empty line represents an empty list.

outputFormat

A single line containing the squared values of the input integers, separated by a single space. There should be no extra spaces at the beginning or end of the line.## sample

1 2 3 4
1 4 9 16

</p>