#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int s; cin >> s;
    cout << fixed << setprecision(10) << 5.0L / 12 * (3 + sqrt(5)) * pow(s, 3);
}