#include <stdio.h>
int fuga(int x,int y){
int result,i,j;
result=1+x;
j=x;
if(y==0){
return 1;
}
else{
for(i=2;i<=y;i++){
x=x*j;
result=result+x;
}
return result;
}
}
int main(void){
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZnVnYShpbnQgeCxpbnQgeSl7CglpbnQgcmVzdWx0LGksajsKCXJlc3VsdD0xK3g7CglqPXg7CglpZih5PT0wKXsKCQlyZXR1cm4gMTsKCX0KCWVsc2V7Cglmb3IoaT0yO2k8PXk7aSsrKXsKCQl4PXgqajsKCQlyZXN1bHQ9cmVzdWx0K3g7Cgl9CglyZXR1cm4gcmVzdWx0OwoJfQp9CgppbnQgbWFpbih2b2lkKXsKCQoJcHJpbnRmKCIlZCIsZnVnYSgyLDMpKTsKCQoJcmV0dXJuIDA7CgkKCQp9Cg==