using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static long NN => long.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var a = NN; var b = NN; if (a == 0 && b == 0) { WriteLine(0); } else { var ans = 1L; for (var i = 0; i < b; ++i) ans *= a; WriteLine(ans); } } }