using System;
public class FunctionCalculatePowerNumber
{
public static void Main(string[] args)
{
int number = Convert.ToInt32(Console.ReadLine());
int exponent = Convert.ToInt32(Console.ReadLine());
int power = Power(number, exponent);
Console.WriteLine(power);
}
public static int Power(int number, int exponent)
{
int result = 1;
for (int i = 0; i < exponent; i++)
{
result *= number;
}
return result;
}
}