#include #include #include #include using namespace std; int main() { int n, m; cin >> n >> m; vector s(n); for (auto &x : s) cin >> x; cout << (any_of(s.begin(), s.end(), [](string x) {return x.find("LOVE") != -1; }) ? "YES" : "NO") << endl; }