#include <iostream>
#include <vector>
using namespace std;
int main() {
vector <long long> a;
long long b;
while (cin >> b)
{
a.push_back(b);
}
for (int i = 0; i < a.size()/2; i++)
{
if(a[i] <= 0)
{
a[a.size()/2 + i] *= 10;
}
else
{
a[a.size()/2 + i] = 0;
}
}
for (auto c : a)
{
cout << c << " ";
}
cout << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl2ZWN0b3IgPGxvbmcgbG9uZz4gYTsKCWxvbmcgbG9uZyBiOwoJd2hpbGUgKGNpbiA+PiBiKQoJewoJCWEucHVzaF9iYWNrKGIpOwoJfQoJZm9yIChpbnQgaSA9IDA7IGkgPCBhLnNpemUoKS8yOyBpKyspCgl7CgkJaWYoYVtpXSA8PSAwKQoJCXsKCQkJYVthLnNpemUoKS8yICsgaV0gKj0gMTA7CgkJfQoJCWVsc2UKCQl7CgkJCWFbYS5zaXplKCkvMiArIGldID0gMDsKCQl9Cgl9Cglmb3IgKGF1dG8gYyA6IGEpCgl7CgkJY291dCA8PCBjIDw8ICIgIjsKCX0KCWNvdXQgPDwgZW5kbDsKCXJldHVybiAwOwp9