#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; ll MOD=698468298355739; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); random_device rd; mt19937_64 rnd(rd()); uniform_int_distribution dist_n(100000001,99999999999999); int n; cin>>n; vector S(n); rep(i,n) cin>>S[i]; vector A(n); rep(i,n){ ll a=dist_n(rnd); A[i]=a; } set s; rep(i,n){ ll sum=0; int k=S[i].size(); rep(j,k) sum=(sum+A[j]*S[i][j])%MOD; if(s.count(sum)) cout<<"Yes"<