import java.io.*;
import java.util.*;


class Main {
    public static void main(String[] args) {
        Scanner scr = new Scanner(System.in);
//        int t = scr.nextInt();
//        while (t-- > 0)
        solve(scr);
    }


//    static void solve(Scanner scr) {
//        int n = scr.nextInt();
//        int[] a = new int[n];
//        int[] b = new int[n + 1];
//
//        for (int i = 0; i < n; i++) {
//            a[i] = scr.nextInt();
//            b[a[i]]++;
//        }
//        int s = 0;
//        for (int i = 0; i < n; i++) {
//            s += b[i] * (b[i] - 1) / 2;
//        }
//
//        for (int i = 0; i < n; i++) {
//            int c = (b[a[i]] - 1) * (b[a[i]] - 2) / 2 > 0 ? (b[a[i]] - 1) * (b[a[i]] - 2) / 2 : 0;
//            int d = (b[a[i]]) * (b[a[i]] - 1) / 2;
//            System.out.println(s - d + c);
//        }
//
//
//    }


    static void solve(Scanner scr) {
        int L = scr.nextInt();
        double a = L / 3.0;
        double d = Math.pow(a, 3);
        System.out.printf("%f", d);

    }

}


 import java.io.*; io.* java import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner scr = new Scanner(System.in);
//        int t = scr.nextInt();
//        while (t-- > 0)
        solve(scr);
    }


//    static void solve(Scanner scr) {
//        int n = scr.nextInt();
//        int[] a = new int[n];
//        int[] b = new int[n + 1];
//
//        for (int i = 0; i < n; i++) {
//            a[i] = scr.nextInt();
//            b[a[i]]++;
//        }
//        int s = 0;
//        for (int i = 0; i < n; i++) {
//            s += b[i] * (b[i] - 1) / 2;
//        }
//
//        for (int i = 0; i < n; i++) {
//            int c = (b[a[i]] - 1) * (b[a[i]] - 2) / 2 > 0 ? (b[a[i]] - 1) * (b[a[i]] - 2) / 2 : 0;
//            int d = (b[a[i]]) * (b[a[i]] - 1) / 2;
//            System.out.println(s - d + c);
//        }
//
//
//    }


    static void solve(Scanner scr) {
        int L = scr.nextInt();
        double a = L / 3.0;
        double d = Math.pow(a, 3);
        System.out.printf("%f", d);

    }

} Main public static void main(String[] args) {
        Scanner scr = new Scanner(System.in);
//        int t = scr.nextInt();
//        while (t-- > 0)
        solve(scr);
    } main {
        Scanner scr = new Scanner(System.in);
//        int t = scr.nextInt();
//        while (t-- > 0)
        solve(scr);
    } Scanner scr = new Scanner(System.in); scr new Scanner(System.in) solve(scr) solve scr String[] args args static void solve(Scanner scr) {
        int L = scr.nextInt();
        double a = L / 3.0;
        double d = Math.pow(a, 3);
        System.out.printf("%f", d);

    } solve {
        int L = scr.nextInt();
        double a = L / 3.0;
        double d = Math.pow(a, 3);
        System.out.printf("%f", d);

    } int L = scr.nextInt(); L scr.nextInt() scr.nextInt scr double a = L / 3.0; a L / 3.0 L 3.0 double d = Math.pow(a, 3); d Math.pow(a, 3) Math.pow Math a 3 System.out.printf("%f", d) System.out.printf System.out System System.out "%f" d Scanner scr scr
import java.io.*;
import java.util.*;


class Main {
    public static void main(String[] args) {
        Scanner scr = new Scanner(System.in);
//        int t = scr.nextInt();
//        while (t-- > 0)
        solve(scr);
    }


//    static void solve(Scanner scr) {
//        int n = scr.nextInt();
//        int[] a = new int[n];
//        int[] b = new int[n + 1];
//
//        for (int i = 0; i < n; i++) {
//            a[i] = scr.nextInt();
//            b[a[i]]++;
//        }
//        int s = 0;
//        for (int i = 0; i < n; i++) {
//            s += b[i] * (b[i] - 1) / 2;
//        }
//
//        for (int i = 0; i < n; i++) {
//            int c = (b[a[i]] - 1) * (b[a[i]] - 2) / 2 > 0 ? (b[a[i]] - 1) * (b[a[i]] - 2) / 2 : 0;
//            int d = (b[a[i]]) * (b[a[i]] - 1) / 2;
//            System.out.println(s - d + c);
//        }
//
//
//    }


    static void solve(Scanner scr) {
        int L = scr.nextInt();
        double a = L / 3.0;
        double d = Math.pow(a, 3);
        System.out.printf("%f", d);

    }

}



