ll@n,@m; string@s[m]; HashMaph; h.init(n,0); ull a=(ull)time(0)|1; rep(x,n){ ull v=0; rep(y,m){ v=v*a+s[y][x]; } if(h[v]++){ wt("No"); exit(0); } } wt("Yes");