import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; import java.math.BigInteger.*; public class Solution { static BigInteger sumOfGroup(int k) { // Return the sum of the elements of the k'th group. if(!(k >= 1 && k <= 1000000)) { return new BigInteger("0"); } BigInteger bd = new BigInteger("" + k); bd = bd.multiply(bd).multiply(bd); return bd; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int k = in.nextInt(); BigInteger answer = sumOfGroup(k); System.out.println(answer); in.close(); } }