@GGbond_wawdsj
int a,b; cin>>a>>b; int w; w= pow(a,b); if(w<0||w>1e9) cout<<-1; else cout<<w; return 0;
}