#include #include #define MAX 10001 int a[MAX]; int main() { memset(a, 0, sizeof(a)); a[0] = 1; for (int n=0; n