#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector <long double> c;
long double m, sum = 0, result = 1;
while (cin >> m){
c.push_back(m);
}
for (int i = 0; i < c.size()/2; i++){
sum = c[i] + c[c.size() - 1 - i];
result *= sum;
}
cout << result << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICB2ZWN0b3IgPGxvbmcgZG91YmxlPiBjOwogICAgbG9uZyBkb3VibGUgbSwgc3VtID0gMCwgcmVzdWx0ID0gMTsKICAgIHdoaWxlIChjaW4gPj4gbSl7CiAgICAgICAgYy5wdXNoX2JhY2sobSk7CiAgICB9CiAgICBmb3IgKGludCBpID0gMDsgaSA8IGMuc2l6ZSgpLzI7IGkrKyl7CiAgICAgICAgc3VtID0gY1tpXSArIGNbYy5zaXplKCkgLSAxIC0gaV07CiAgICAgICAgcmVzdWx0ICo9IHN1bTsKICAgIH0KICAgIGNvdXQgPDwgcmVzdWx0IDw8IGVuZGw7CiAgICByZXR1cm4gMDsKfQo=