#include <iostream>
using namespace std;
int main() {
double mul = 1; //Произведение
double x;
while(cin >> x && x>=0) mul *= x;
cout << mul;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewoJZG91YmxlIG11bCA9IDE7IC8v0J/RgNC+0LjQt9Cy0LXQtNC10L3QuNC1Cglkb3VibGUgeDsKCXdoaWxlKGNpbiA+PiB4ICYmIHg+PTApCW11bCAqPSB4OwoJY291dCA8PCBtdWw7CglyZXR1cm4gMDsKfQ==