#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;
}
