#include #include #include #include #include #include #include #include #include #include #define rep(i,n) for(int i=0;i> n >> m; rep(i, n) cin >> A[i]; for (int i = 0; i < n; i++) for (int j = 0; j < m-4; j++) if (A[i][j] == 'L'&&A[i][j + 1] == 'O'&&A[i][j + 2] == 'V'&&A[i][j + 3] == 'E') { ans = 1; break; } if (ans == 1) cout << "YES" << endl; else cout << "NO" << endl; return 0; }