#include<bits/stdc++.h> using namespace std; #define int long long #define endl '\n' #define wkr ios::sync_with_stdio(false),cin.tie(0),cout.tie(0) const int N = 1e5 + 10; int cnt[N],a[N][128],tot; int find(string t){ int p = 0; for(int i = 0;i<(int)t.size();i++){ if(t[i] >= 'A' &&am...