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