#include<iostream>
#include <math.h>
using namespace std;
int main()
{
int a,n;
while(cin>>a>>n)
{
if(a==0 && n==0)
{
break;
}
long long int ans= pow((double)a,n);
printf("%d\\n",ans);
//cout<<ans<<endl;
}
int count=0;
while(cin>>a>>n)
{
count++;
}
//cout<<"All Over. Exceeded "<<count<<" lines!"<<endl;
printf("All Over. Exceeded %d lines!\\n",count);
return 0;
}