#include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ int n, m; string s, l = "LOVE"; cin >> n >> m; for (int i = 0; i < n; i++){ cin >> s; if (s.find(l) != string::npos){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; }