import java.util.*;
//import java.lang.Math;
public class Practicer {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
long base = cin.nextLong();
long power = cin.nextLong();
System.out.printf("%.0f",Math.pow(base, power));
//?? why can't import java.lang.Math; ?
}
}