#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> N; map m; REP(i,N){ string s; cin >> s; REP(j,26){ string t=s; t+=char('a'+j); sort(t.begin(),t.end()); m[t]++; } } for(auto x : m){ string a=x.first; if(x.second==1){ cout << a << endl; return 0; } } cout << -1 << endl; return 0; }