import java.util.Scanner;

public class Main {
    public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        }
    }
} Main public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    } pow {
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    } int ans = num; ans num while(1 < cnt--){
            ans *= num;
        } 1 < cnt-- 1 cnt-- cnt {
            ans *= num;
        } ans *= num ans num return ans; ans int num num int cnt cnt public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        } sc.hasNext() sc.hasNext sc {
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        } String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int innum = Integer.parseInt(line[0]); innum Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int ans = pow(innum,3); ans pow(innum,3) pow innum 3 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        }
    }
} public class Main {
    public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int innum = Integer.parseInt(line[0]);
            int ans = pow(innum,3);
            System.out.println(ans);
        }
    }
}