#include <stdio.h>
int main(void) {
int n=30;
int a[n];
int i;
a[0]=2;
a[1]=-1;
for(i=2;i<n;i++){
a[i]=-a[i-1]+a[i-2]+2;
}
// your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgppbnQgbj0zMDsKaW50IGFbbl07CmludCBpOwoJYVswXT0yOwoJYVsxXT0tMTsKCmZvcihpPTI7aTxuO2krKyl7CglhW2ldPS1hW2ktMV0rYVtpLTJdKzI7Cn0KCnByaW50ZigiYVsyOV09JWRcbiIsYVsyOV0pOwoKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9Cg==