import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static long sumOfGroup(int k) { // Return the sum of the elements of the k'th group. long ans=k; ans*=k; ans=ans%(long)(Math.pow(10,9)+7); ans*=k; ans=ans%(long)(Math.pow(10,9)+7); return ans; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int k = in.nextInt(); BigInteger ans=BigInteger.valueOf(k); BigInteger res=BigInteger.valueOf(1); res=res.multiply(ans); res=res.multiply(ans); res=res.multiply(ans); //long answer = sumOfGroup(k); System.out.println(res); in.close(); } }