#include <bits/stdc++.h>
using namespace std;
float f(float(*fx)(float), float y, float jd){
float left = 0;
float right = y;
float x = 0;
float fy = 0;
while(right - left > jd){
x = (left + right) / 2;
fy = fx(x);
if(fy == y){
break;
}else if (fy > y){
right = x;
}else if (fy < y){
left = x;
}
}
return x;
}
float f1(float x){
return x * x * x;
}
int main(){
int n;
cin >> n;
printf("%.3f", f(f1, n, 0.0001) * 3);
return 0;
}