#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 MOD1=698468298355739; ll MOD2=301781318234953; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); random_device rd; mt19937_64 rnd(rd()); uniform_int_distribution dist_n1(100000001,999999999999),dist_n2(100000001,999999999999); int n; cin>>n; vector S(n); rep(i,n) cin>>S[i]; vector A(n),B(n); rep(i,n){ ll a=dist_n1(rnd),b=dist_n2(rnd); A[i]=a,B[i]=b; } set> s; rep(i,n){ ll sum1=0,sum2=0; int k=S[i].size(); rep(j,k){ sum1=(sum1+A[j]*S[i][j]%MOD1)%MOD1; sum2=(sum2+B[j]*S[i][j]%MOD2)%MOD2; } if(s.count({sum1,sum2})) cout<<"Yes"<