import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static String sumOfGroup(int k) { double d=Math.pow(k,3); String s=""+d; return s; // Return the sum of the elements of the k'th group. } public static void main(String[] args) { Scanner in = new Scanner(System.in); int k = in.nextInt(); String answer = sumOfGroup(k); int l=answer.length(); System.out.println(answer.substring(0,l-2)); in.close(); } }