#include <iostream>
#include <vector>
using namespace std;
int main() {
vector <double> a;
double b;
while (cin >> b){
a.push_back(b);
}
double min=a[0]*a[a.size()/2];
for(int i=0; i<(a.size())/2; i++){
if (a[i]*a[(a.size()/2+i)]< min){
min = a[i]*a[(a.size()/2+i)];
}
}
cout << min;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl2ZWN0b3IgPGRvdWJsZT4gYTsKCWRvdWJsZSBiOwoJCgl3aGlsZSAoY2luID4+IGIpewoJCWEucHVzaF9iYWNrKGIpOwoJfQoJZG91YmxlIG1pbj1hWzBdKmFbYS5zaXplKCkvMl07Cglmb3IoaW50IGk9MDsgaTwoYS5zaXplKCkpLzI7IGkrKyl7CgkJaWYgKGFbaV0qYVsoYS5zaXplKCkvMitpKV08IG1pbil7CgkJCW1pbiA9IGFbaV0qYVsoYS5zaXplKCkvMitpKV07CgkJfQoJfQoJY291dCA8PCBtaW47CgoJcmV0dXJuIDA7Cn0KCg==