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(); String sc=Integer.toString(k); BigInteger f = new BigInteger(sc); BigInteger g = new BigInteger(sc); f = f.multiply(f); f = f.multiply(g); System.out.println(f); in.close(); } }