#include using namespace std; int main() { long long N ; cin >> N; double ans = N * N * N * (3 + sqrt(5)) * 5 / 12; cout << fixed << setprecision(12) << ans << endl; }