import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        double max=-1;
        int dim=Integer.parseInt(br.readLine());
        //if(dim==1)
        //pw.println("0.037026");
        //else if(dim==2)
    //    pw.println("0.296274");
     //   else
      //  {
            /*for(int i=1;i<=1000;i++)
            {
                for(int j=1;j<=1000;j++)
                {
                    for(int k=1;k<=1000;k++)
                    {
                        if(i+j+k==dim)
                        {
                            max=Math.max(max,(double)i*j*k);
                        }
                    }
                }
            }*/
            pw.println(Math.pow((double)dim/3,3));
        //}
        //System.out.println(max);
        pw.flush();
        pw.close();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        double max=-1;
        int dim=Integer.parseInt(br.readLine());
        //if(dim==1)
        //pw.println("0.037026");
        //else if(dim==2)
    //    pw.println("0.296274");
     //   else
      //  {
            /*for(int i=1;i<=1000;i++)
            {
                for(int j=1;j<=1000;j++)
                {
                    for(int k=1;k<=1000;k++)
                    {
                        if(i+j+k==dim)
                        {
                            max=Math.max(max,(double)i*j*k);
                        }
                    }
                }
            }*/
            pw.println(Math.pow((double)dim/3,3));
        //}
        //System.out.println(max);
        pw.flush();
        pw.close();
    }
} Main public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        double max=-1;
        int dim=Integer.parseInt(br.readLine());
        //if(dim==1)
        //pw.println("0.037026");
        //else if(dim==2)
    //    pw.println("0.296274");
     //   else
      //  {
            /*for(int i=1;i<=1000;i++)
            {
                for(int j=1;j<=1000;j++)
                {
                    for(int k=1;k<=1000;k++)
                    {
                        if(i+j+k==dim)
                        {
                            max=Math.max(max,(double)i*j*k);
                        }
                    }
                }
            }*/
            pw.println(Math.pow((double)dim/3,3));
        //}
        //System.out.println(max);
        pw.flush();
        pw.close();
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        double max=-1;
        int dim=Integer.parseInt(br.readLine());
        //if(dim==1)
        //pw.println("0.037026");
        //else if(dim==2)
    //    pw.println("0.296274");
     //   else
      //  {
            /*for(int i=1;i<=1000;i++)
            {
                for(int j=1;j<=1000;j++)
                {
                    for(int k=1;k<=1000;k++)
                    {
                        if(i+j+k==dim)
                        {
                            max=Math.max(max,(double)i*j*k);
                        }
                    }
                }
            }*/
            pw.println(Math.pow((double)dim/3,3));
        //}
        //System.out.println(max);
        pw.flush();
        pw.close();
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter pw=new PrintWriter(System.out); pw new PrintWriter(System.out) double max=-1; max -1 1 int dim=Integer.parseInt(br.readLine()); dim Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br pw.println(Math.pow((double)dim/3,3)) pw.println pw Math.pow((double)dim/3,3) Math.pow Math (double)dim/3 (double)dim 3 3 pw.flush() pw.flush pw pw.close() pw.close pw String args[] args public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        double max=-1;
        int dim=Integer.parseInt(br.readLine());
        //if(dim==1)
        //pw.println("0.037026");
        //else if(dim==2)
    //    pw.println("0.296274");
     //   else
      //  {
            /*for(int i=1;i<=1000;i++)
            {
                for(int j=1;j<=1000;j++)
                {
                    for(int k=1;k<=1000;k++)
                    {
                        if(i+j+k==dim)
                        {
                            max=Math.max(max,(double)i*j*k);
                        }
                    }
                }
            }*/
            pw.println(Math.pow((double)dim/3,3));
        //}
        //System.out.println(max);
        pw.flush();
        pw.close();
    }
} public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        double max=-1;
        int dim=Integer.parseInt(br.readLine());
        //if(dim==1)
        //pw.println("0.037026");
        //else if(dim==2)
    //    pw.println("0.296274");
     //   else
      //  {
            /*for(int i=1;i<=1000;i++)
            {
                for(int j=1;j<=1000;j++)
                {
                    for(int k=1;k<=1000;k++)
                    {
                        if(i+j+k==dim)
                        {
                            max=Math.max(max,(double)i*j*k);
                        }
                    }
                }
            }*/
            pw.println(Math.pow((double)dim/3,3));
        //}
        //System.out.println(max);
        pw.flush();
        pw.close();
    }
} Main
import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        double max=-1;
        int dim=Integer.parseInt(br.readLine());
        //if(dim==1)
        //pw.println("0.037026");
        //else if(dim==2)
    //    pw.println("0.296274");
     //   else
      //  {
            /*for(int i=1;i<=1000;i++)
            {
                for(int j=1;j<=1000;j++)
                {
                    for(int k=1;k<=1000;k++)
                    {
                        if(i+j+k==dim)
                        {
                            max=Math.max(max,(double)i*j*k);
                        }
                    }
                }
            }*/
            pw.println(Math.pow((double)dim/3,3));
        //}
        //System.out.println(max);
        pw.flush();
        pw.close();
    }
}