#include #include int main (void) { int n, m; int counter = 0; scanf("%d", &n); scanf("%d", &m); char s[n][m]; for (int i = 0; i < n; i++) { if (strstr(s[i], "LOVE") != NULL) { printf("YES\n"); counter = 1; return 0; } } printf("NO\n"); return 0; }