import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
static Scanner sc
= new Scanner
(System.
in);
{
double mul = 1;
double x;
while(sc.hasNext()){
x = sc.nextDouble();
if(x < 0){
break;
}
mul *= x;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBNYWluCnsKCXN0YXRpYyBTY2FubmVyIHNjID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJZG91YmxlIG11bCA9IDE7CgkJZG91YmxlIHg7CgkJd2hpbGUoc2MuaGFzTmV4dCgpKXsKCQkJeCA9IHNjLm5leHREb3VibGUoKTsKCQkJaWYoeCA8IDApewoJCQkJYnJlYWs7CgkJCX0KCQkJbXVsICo9IHg7CgkJfQoJCVN5c3RlbS5vdXQucHJpbnRsbihtdWwpOwoJfQp9