#include <iostream>
#include <cmath>

double calculateVolumeFromSurfaceArea(double surfaceArea) {
    double sideLength = cbrt(surfaceArea / 6);
    return std::pow(sideLength, 3);
}

int main() {
    double surfaceArea = 54.0;
    double volume = calculateVolumeFromSurfaceArea(surfaceArea);
    std::cout << "The volume of the cube with surface area " << surfaceArea << " is " << volume << std::endl;
    return 0;
}