//水题 #include <cstdio> #include <iostream> using namespace std; const int N = 1e4 + 10; int a[N], b[N]; int main() { int k, n; scanf("%d", &k); for (int c = 1; c <= k; c++) { scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", a + i); for (int i = 0; i < n; i++) scanf("%d", b + i); int ans = 0; for (int i = 0; i < n; i++) if (b[i] + a[i] > 10) ans++; printf("Case %d: %d ", c, ans); } return 0; }