#include using namespace std; using ll = long long; using vll = vector; using vvll = vector; #define all(A) A.begin(),A.end() #define rep(i, n) for (ll i = 0; i < (ll) (n); i++) int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll A,N,an=1; cin>>A>>N; rep(i,N){ an*=A; if(1e7<=an&&an<=1e18){ cout<