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); int k = in.nextInt(); BigInteger a = new BigInteger(k+""); BigInteger res = a.pow(3); System.out.println(res.toString()); in.close(); } }