#include <stdio.h>
int func(int n){
int i,a=4;
for(i=1;i<=n;i++){
a=-3*a+1;
}
return a;
}
int main(void) {
int n=5;
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBmdW5jKGludCBuKXsKCWludCBpLGE9NDsKCWZvcihpPTE7aTw9bjtpKyspewoJCWE9LTMqYSsxOwoJfQoJcmV0dXJuIGE7Cn0KCmludCBtYWluKHZvaWQpIHsKCWludCBuPTU7CgkgICAgcHJpbnRmKCLlgKTjga8lZCIsZnVuYyhuKSk7CglyZXR1cm4gMDsKfQ==