#include #define to edge[i].v #define mp make_pair #define rint register int #define debug(x) cerr<<#x<<"="< pii; char c[N][20];int num[N],a[N]; int main() { int t; cin>>t; for(rint T=1;T<=t;T++) { int n,m,k,ans=0; scanf("%d%d%d",&n,&m,&k); memset(a,0,sizeof(a)); for(rint i=1;i<=n;i++) scanf("%s",c[i]); for(rint i=1;i<=n;i++) for(rint j=0;j=k) ans++; } printf("Case #%d: %d\n",T,ans); } return 0; }