import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		System.out.println((int)Math.pow(N, 3));
		sc.close();
	}

}
/*
                                                               ..g+.
                                                            .(dY97WYX+.
                                                       ..(zY7` j> (k. ?TG+..
                                                ...J+wV7^`    .$`  jy     ?7TX&J-...
                                         ...JwVY7<!`         .k:    U;          _?7TTw&-..
                                     .(ZY^!`                 (D dNm_.I.                 _?7U&.
                                   .dY!                     .X! dHN~ d_                      7W,
                                  j$`                       (0  vM9` JI                        ?h-
                                 j=                         J>   =~  (0                         (0.
                                .0`                         d:   =~   X-                         zr
                                .k.                        .X`   l~   d{                         d3
                                 d:                        .0`   <~   zr                        .Z`
                             ..(&dHsws&+-...               ($   .(,   jD                ...J+uwAdSy&-.
                           .dY^`  .4o(<(<<?7Tw&-..  ............jMR-............  ..JzV77<<+(_(K>   _7X+
                          JY`       ?k-;<+<?3&-_?T!.WMMMMMMM@MMMMMMMMMMMMMMMMMHI ?=~((v71J<<(dY`       ?N,
                         dt          _4n<i/1O-~?To..M#!    WM:        dN}    d#I (Z=!(Jv<J<uf!          .W-
                        (S             _4x?I._?4+. .M#!    WM:        dN}    dHC .-z7!.JC(Z^             JI
                       (I               -Tn,?G..?! _~      ~..     ..-!      ~  ?~.JC<JY!               (0`
                        (0                  7h._Tk-.MN+.... (MMm&.(gMM3  ....jNr (Y^(dY!                 (0
                        (S_                   ?TG. .WMMMMMD   (WHHHMs_  ?MMMMMMI .JY^                    JC
                         Or                      ?!.WNeJJJ. .WM@0<jMHNl .(JJJdMI ?`                     .X~
                         .S_                       .WMYYYY3  -7HH@HM9!  ?TYYYMMI                        J%
                          (I                     ...MNmggge .gHMB7TMNm, (ggggHMr .                     (K`
                           d-                 .(dY` ?7<<??<..?!-....(?~..?<<<?<` ?Ue.                  d>
                           ?I              ..v=!   .W@MMMMMMMMMMMMMMMMMMMMMMM@Ml    ?4&.              (C
                            X-           .uY!      .M#: ..  ...........  ... d#I      .7X,.           d:
                            jr         .Z=`    ..x!.M#!.MN! dMMMMMMMMMN> dM% d#I j-.     (4e.        .Z`
                            .R_     .JY!    .(v!`  .M#!.HN! dNo......dN: dM) d#I   ?1i..   -7n,      J}
                             X{   .(Y! .+gJv!`     .M#!.HN! dMMMMHMMMMB! dM) d#I      _?uJg.. 7h,    k:
                             jr  (Y! dMHMB:    ..&<.M#!.HN&.....jMh-.....dMr d#I j-..    TMHMH< ?n. .K`
                             (%-k^   (9=` ..JsV=!  .M@! TBYYYYYYHMMYYYYYYY9! dMC  -?TX&-.. ?T=   .4l(D`
                             (H$  ....(zVY=!                 .JJgMR`                   _?7TG&-...  ?WR
                             ?HHk77<!``                      _TYTY^                          `~??7OWH9`
                                ?4&.                        .+ (.-.(---                        .(Z=`
                                   ?4&.                      X-j<z~z~d:                      .Z=`
                                     _4n.                    jr(<<~<.Z`                   .(V^
                                        ?n,                  .S<?~(<J}                  .-Y!
                                          ?X,                 (nz__+D`                .+Y`
                                            7n.                dw<(S`               .J9!
                                              7n,               OQV!              ..f!
                                               .Tn.             .Hn.            .(V^
                                                  ?U+.     ` ..Z= _Te..   `  ..vY!
                                                     ?7TrOOZT=!      ?7TwOrZ77!
*/

Measured memory_bytes: 21844