#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
double result = 768*sqrt(2-sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+1))))))))));
setprecision(15);
cout << result <<endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPGNtYXRoPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgZG91YmxlIHJlc3VsdCA9IDc2OCpzcXJ0KDItc3FydCgyK3NxcnQoMitzcXJ0KDIrc3FydCgyK3NxcnQoMitzcXJ0KDIrc3FydCgyK3NxcnQoMitzcXJ0KDIrMSkpKSkpKSkpKSk7CiAgICAKICAgIHNldHByZWNpc2lvbigxNSk7CiAgICBjb3V0IDw8IHJlc3VsdCA8PGVuZGw7Cn0=