#include using namespace std; using ll = long long; bool have[1 << 10]; int main(){ int N; cin >> N; string s; for(int i = 0;i < N;++i){ cin >> s; int aux = 0; for(int j = 0;j < N && j < 10;++j){ if(s[j] == 'b'){ aux |= (1 << j); } } have[aux] = true; } int l = min(N, 10); for(int mask = 0;mask < (1 << l);++mask){ if(!have[mask]){ for(int j = 0;j < l;++j){ if(mask >> j & 1) cout << 'b'; else cout << 'a'; } for(int j = l;j < N;++j){ cout << 'a'; } cout << endl; return 0; } } return 0; }