object Main{ def main(args:Array[String]){ val s = new java.util.Scanner(System.in) val a,b=s.nextInt println(BigInt(b).pow(a)) } }