import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone {
public static void main
(String[] args
) { Scanner x
= new Scanner
(System.
in); double p = 1, a ;
int c = 0;
while( x.hasNext() ) {
a = x.nextDouble();
if(a >= 0) {
c++;
p*=a;
} else break;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUgewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHsKCQlTY2FubmVyIHggPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWRvdWJsZSBwID0gMSwgYSA7CgkJaW50IGMgPSAwOwoJCXdoaWxlKCB4Lmhhc05leHQoKSApIHsKCQkJYSA9IHgubmV4dERvdWJsZSgpOwoJCQlpZihhID49IDApIHsKCQkJCWMrKzsKCQkJCXAqPWE7CgkJCX0gZWxzZSBicmVhazsKCQl9CgkJU3lzdGVtLm91dC5wcmludGYoIiUuMmYiLCBNYXRoLnBvdyhwLDEuMC9jKSApOwoJfQp9