import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); BigInteger b=new BigInteger(in.nextLine()); //long answer = sumOfGroup(k); System.out.println(b.pow(3)); in.close(); } }