import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) {
        long n = readLong(System.in);
        System.out.println(n * n * n);
    }

    private static long readLong(InputStream in) {
        long n = 0;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            String line = reader.readLine();
            n = Long.parseLong(line);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }
        return n;

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) {
        long n = readLong(System.in);
        System.out.println(n * n * n);
    }

    private static long readLong(InputStream in) {
        long n = 0;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            String line = reader.readLine();
            n = Long.parseLong(line);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }
        return n;

    }
} Main public static void main(String[] args) {
        long n = readLong(System.in);
        System.out.println(n * n * n);
    } main {
        long n = readLong(System.in);
        System.out.println(n * n * n);
    } long n = readLong(System.in); n readLong(System.in) readLong System.in System System.in System.out.println(n * n * n) System.out.println System.out System System.out n * n * n n * n * n n n n String[] args args private static long readLong(InputStream in) {
        long n = 0;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            String line = reader.readLine();
            n = Long.parseLong(line);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }
        return n;

    } readLong {
        long n = 0;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            String line = reader.readLine();
            n = Long.parseLong(line);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }
        return n;

    } long n = 0; n 0 BufferedReader reader = null; reader null try {
            reader = new BufferedReader(new InputStreamReader(in));
            String line = reader.readLine();
            n = Long.parseLong(line);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        } IOException e {
            throw new RuntimeException(e);
        } throw new RuntimeException(e); new RuntimeException(e) {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        } if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            } reader != null reader null {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            } try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } IOException e {
                    throw new RuntimeException(e);
                } throw new RuntimeException(e); new RuntimeException(e) {
                    reader.close();
                } reader.close() reader.close reader {
            reader = new BufferedReader(new InputStreamReader(in));
            String line = reader.readLine();
            n = Long.parseLong(line);
        } reader = new BufferedReader(new InputStreamReader(in)) reader new BufferedReader(new InputStreamReader(in)) String line = reader.readLine(); line reader.readLine() reader.readLine reader n = Long.parseLong(line) n Long.parseLong(line) Long.parseLong Long line return n; n InputStream in in
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) {
        long n = readLong(System.in);
        System.out.println(n * n * n);
    }

    private static long readLong(InputStream in) {
        long n = 0;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            String line = reader.readLine();
            n = Long.parseLong(line);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }
        return n;

    }
}