import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static BigInteger sumOfGroup(BigInteger k) { // Return the sum of the elements of the k'th group. return (k.pow(3)); } public static void main(String[] args) { Scanner in = new Scanner(System.in); BigInteger k = in.nextBigInteger(); BigInteger answer = sumOfGroup(k); System.out.println(answer); in.close(); } }