#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000001 int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; vector s(n); vector> c(n,vector(26)); rep(i,n){ cin>>s[i]; rep(j,s[i].size())c[i][s[i][j]-'a']++; } rep(i,n){ rep(j,26){ vector t = c[i]; t[j]++; int c2 = 0; rep(k,n){ if(i==k)continue; int cc = 0; rep(l,26){ if(c[k][l]+1==t[l])cc++; else if(c[k][l]!=t[l])cc = 2; } if(cc==1)c2 ++; } if(c2==0){ cout<