#include using namespace std;int main(){ int x,a; cin>>x>>a; int s=1; for(int i=1;i<=a;i++) s=s*x; s=s%1000; cout< return 0; }
#includeusing namespace std;void main() { int x,a,y; cin>>x>>a; y=1; for ( int i=0;i cout<}