#include #include #include #include #include #include #include #include using namespace std; int t, a, b, i; int x = 0; string words[4] = {}; string s; int main(){ cin >> t; while(t--){ b = 0; fill_n(words, 4, 0); for(i=0; i < 4; i++){ cin >> s; for(a=0; a