Олимпиадный тренинг

Задача 22001. Rule calculations - 3


You are given four integers. Square those of them whose values ​​are non-negative, and to the fourth power - negative

Input: four integers are entered from the keyboard

Output: display converted numbers (output numbers in the same sequence as input)

Input and output example
test number Input Output
1 3 5 -2 -4 9 25 16 256