#include #include #include #include #include using namespace std; const int N=1100; int dp[N],a[N],n,m; char s[N][15]; void init(){ memset(dp,0,sizeof(dp)); } int main(){ // freopen("a.in","r",stdin); //freopen("a.out","w",stdout); int i,j,k,T,cas; scanf("%d",&T); cas=0; while(T--){ cas++; printf("Case #%d: ",cas); scanf("%d%d%d",&n,&m,&k); init(); for(i=1;i<=n;i++){ scanf("%s",s[i]); a[i]=0; for(j=0;j=k) ans++; printf("%d\n",ans); } return 0; }