#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; map S; for(int i=0; i> s; sort(s.begin(),s.end()); S[s]++; } for(auto [k,v] : S){ if(v != 1) continue; for(char c='a'; c<'z'; c++){ auto itr = S.find(k+c); if(itr != S.end()) continue; cout << k+c << endl; return 0; } } cout << -1 << endl; }