#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> x;
int a;
while (cin >> a)
x.push_back(a);
if (x.at(0) >= 0)
{
int min = *min_element(x.begin(), x.end());
for (int &i : x)
i *= min * min;
}
else
{
int max = *max_element(x.begin(), x.end());
for (int &i : x)
i *= max * max;
}
for (int i : x)
cout << i << " ";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSAKewoJdmVjdG9yPGludD4geDsKCWludCBhOwoJd2hpbGUgKGNpbiA+PiBhKQoJCXgucHVzaF9iYWNrKGEpOwoJaWYgKHguYXQoMCkgPj0gMCkKCXsKCQlpbnQgbWluID0gKm1pbl9lbGVtZW50KHguYmVnaW4oKSwgeC5lbmQoKSk7CgkJZm9yIChpbnQgJmkgOiB4KQoJCQlpICo9IG1pbiAqIG1pbjsKCX0KCWVsc2UKCXsKCQlpbnQgbWF4ID0gKm1heF9lbGVtZW50KHguYmVnaW4oKSwgeC5lbmQoKSk7CgkJZm9yIChpbnQgJmkgOiB4KQoJCQlpICo9IG1heCAqIG1heDsKCX0KCWZvciAoaW50IGkgOiB4KQoJCWNvdXQgPDwgaSA8PCAiICI7CglyZXR1cm4gMDsKfQ==