#include <iostream>
using namespace std;
int main()
{
double cur = 1.0 / 4;
int x;
double ans = 0;
while (cin >> x)
{
ans += cur * x;
cur *= 3.0 / 4;
}
cout << ans << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiBkb3VibGUgY3VyID0gMS4wIC8gNDsKIGludCB4OwogZG91YmxlIGFucyA9IDA7CiB3aGlsZSAoY2luID4+IHgpCiB7CiAgYW5zICs9IGN1ciAqIHg7CiAgY3VyICo9IDMuMCAvIDQ7CiB9CiBjb3V0IDw8IGFucyA8PCBlbmRsOwp9Cg==