#include <stdio.h>
//課題3
int rec(int n){
if(n==0){
return 3;
}
else if (n==1){
return 0;
}
else if (n==2){
return 2;
}
else {
return rec(n-2)+rec(n-3);
}
}
int main(void) {
int n = 50;
for(int i = 0; i <= n; i++){
int an=rec(i);
if (an%n==0){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v6Kqy6aGMMwppbnQgcmVjKGludCBuKXsKaWYobj09MCl7CnJldHVybiAzOwp9CmVsc2UgaWYgKG49PTEpewpyZXR1cm4gMDsKfQplbHNlIGlmIChuPT0yKXsKcmV0dXJuIDI7Cn0KZWxzZSB7CnJldHVybiByZWMobi0yKStyZWMobi0zKTsKfQogCn0KCmludCBtYWluKHZvaWQpIHsKICAgIGludCBuID0gNTA7IAogICAgZm9yKGludCBpID0gMDsgaSA8PSBuOyBpKyspewppbnQgYW49cmVjKGkpOwppZiAoYW4lbj09MCl7CiAgICAgICAgcHJpbnRmKCIlZFxuIixpKTsKICAgIH0KICAgIH0KCXJldHVybiAwOwp9Cgo=