JW 학생
https://www.acmicpc.net/problem/11726
#include "bits/stdc++.h"
using namespace std;
// 2*n 타일링
int dp[1001];
int recursive(int n) {
if (n == 1 || n == 2) return n;
if (dp[n] != 0) {
return dp[n];
}
dp[n] = recursive(n-1)%10007 + recursive(n-2)%10007;
return dp[n];
}
int main() {
int n;
cin >> n;
printf("%d", recursive(n)%10007);
}