#include using namespace std; int main() { long double n; cin >> n; cout << fixed << setprecision(20); cout << n * n * n * 5 * (3 + sqrt(5)) / 12.0 << endl; return 0; }