UVa 11028.c


 * 1) include 
 * 2) include 
 * 3) define REP(I,A) for((I)=0;(I)<(A);++(I))
 * 4) define FOR(I,A,B) for((I)=(A);(I)<=(B);++(I))

int vals[] = {1, 1, 1, 1, 3, 8, 21, 43, 69, 102, 145, 197, 261, 336, 425, 527, 645, 778, 929, 1097, 1285}; int main {   int n;    char buf[4]; int cases = 0; while (true) {		gets(buf); n = atoi(buf); if (n == 0) break; printf("Case #%d: %d", ++cases, vals[n]); }	return 0; }