#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ull=unsigned long long;
using i128=__int128_t;
using u128=__uint128_t;
using ld=long double;
string stan="abcdefghijklmnopqrstuvwxyz";
//题目没有要求密码长度 所以可以设置成1 那么密码只有26种情况 暴力遍历就行
void solve()
{
int n;
cin >> n;
string s[n];
for(int i=0;i<n;i++) cin >> s[i];
for(int i=0;i<26;i++)
{
bool exist=true;
for(int j=0;j<n;j++)
{
if(s[j].find(stan[i])==string::npos)
{
exist=false;
break;
}
}
if(exist)
{
cout << stan[i];
break;
}
}
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t=1;
//cin >> t;
while(t--)
{
solve();
}
return 0;
}