package aoj;

import java.util.Scanner;

public class ITP1_1B {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		
		x = x*x*x;
		
		System.out.println(x);
	}

}