#include #include int main(void){ int n, m, i; char s[50][51]; m = 0; scanf("%d%d", &n, &m); for(i=0;i0) printf("YES"); else printf("NO"); return 0; }