#include #include int res[1003]; int cnt[1025]; int main() { int T,n,m,k,x,y,z; int ans,sum,total; char ss[12]; scanf("%d",&T); for(int t=1;t<=T;t++){ scanf("%d %d %d",&n,&m,&k); for(int i=0;i=k){ ans++; } } printf("Case #%d: %d\n",t,ans); } return 0; }