#include <stdio.h>
int fuga(int x,int y){
int n=1;
int i;
if(y==0){
return 1;
}
for(i=0;i<y;i++){
n=n*x;
}
return n+fuga(x,y-1);
}
int main(void) {
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZnVnYShpbnQgeCxpbnQgeSl7CglpbnQgbj0xOwoJaW50IGk7CglpZih5PT0wKXsKCQlyZXR1cm4gMTsKCX0KCWZvcihpPTA7aTx5O2krKyl7CgkJbj1uKng7Cgl9CglyZXR1cm4gbitmdWdhKHgseS0xKTsKCn0KCgppbnQgbWFpbih2b2lkKSB7CglwcmludGYoIiVkIixmdWdhKDIsMykpOwoJcmV0dXJuIDA7Cn0K