#include using namespace std; int main(){ int N; cin >> N; printf("%.15lf\n", 5 * (3 + sqrt(5)) * N * N * N / 12); }