# 冪乗の片側極限 def main(): A = int(input()) B = int(input()) if A == 0: print(0) else: ans = A**B print(ans) if __name__ == "__main__": main()