// $Id: nestedloop.csharp,v 1.0 2002/02/14 11:17:00 dada Exp $
// http://dada.perl.it/shootout/

using System;

class App {

    public static int Main(String[] args) {
        int n;
        int a, b, c, d, e, f, x=0;
        n = System.Convert.ToInt32(args[0]);
        if(n < 1) n = 1;

        for (a=0; a<n; a++)
        for (b=0; b<n; b++)
            for (c=0; c<n; c++)
            for (d=0; d<n; d++)
                for (e=0; e<n; e++)
                for (f=0; f<n; f++)
                    x++;
    
        Console.WriteLine(x.ToString() + "\n");
        return(0);
    }
}