#include #include #include #include #include using namespace std; typedef long long ll; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ ll t,n; string p; cin >> t; ll a=0; while(t--) { a=0; cin >> n; while(n--) { cin >> p; for(ll i=0;i