#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 = 1; i <= n; i++){
int an = rec(i);
if (an % i == 0){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v6Kqy6aGMMwppbnQgcmVjKGludCBuKXsKCWlmIChuID09IDApewoJCXJldHVybiAzOwoJfWVsc2UgaWYobiA9PSAxKXsKCQlyZXR1cm4gMDsKCX1lbHNlIGlmKG4gPT0gMil7CgkJcmV0dXJuIDI7Cgl9ZWxzZXsKCQlyZXR1cm4gcmVjKG4tMikrcmVjKG4tMyk7Cgl9CiAKfQoKaW50IG1haW4odm9pZCkgewogICAgaW50IG4gPSA1MDsgCiAgICBmb3IoaW50IGkgPSAxOyBpIDw9IG47IGkrKyl7CiAgICAgICAgaW50IGFuID0gcmVjKGkpOwogICAgICAgIGlmIChhbiAlIGkgPT0gMCl7CiAgICAgICAgCXByaW50ZigiJWQiLGkpOwogICAgICAgIH0KICAgIH0KICAgIHByaW50ZigiXG4iKTsKCXJldHVybiAwOwp9Cgo=