import java.util.Scanner;

public class Main {

    private static final int BASE = 3;

    public static void main(String[] args) {
        System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE));
    }
} import java.util.Scanner; Scanner java.util public class Main {

    private static final int BASE = 3;

    public static void main(String[] args) {
        System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE));
    }
} Main private static final int BASE = 3; BASE 3 public static void main(String[] args) {
        System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE));
    } main {
        System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE));
    } System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE)) System.out.println System.out System System.out (int)Math.pow(new Scanner(System.in).nextInt(), BASE) Math.pow Math new Scanner(System.in).nextInt() new Scanner(System.in).nextInt new Scanner(System.in) BASE String[] args args public class Main {

    private static final int BASE = 3;

    public static void main(String[] args) {
        System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE));
    }
} public class Main {

    private static final int BASE = 3;

    public static void main(String[] args) {
        System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE));
    }
} Main
import java.util.Scanner;

public class Main {

    private static final int BASE = 3;

    public static void main(String[] args) {
        System.out.println((int)Math.pow(new Scanner(System.in).nextInt(), BASE));
    }
}