#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define sz size() #define pb push_back #define mp make_pair #define fi first #define se second #define all(c) (c).begin(), (c).end() #define rep(i,a,b) for(ll i=(a);i<(b);++i) #define per(i,a,b) for(ll i=(b-1);i>=(a);--i) #define clr(a, b) memset((a), (b) ,sizeof(a)) #define ctos(c) string(1,c) #define print(x) cout<<#x<<" = "<>h>>w; if(w<4){ cout << "NO" << endl; return 0; } string s1 = "LOVE"; ll flag = 0; rep(y,0,h){ string s; cin>>s; rep(i,0,s.sz-3){ ll flag1 = 1; rep(j,0,4){ if(s[i+j]!=s1[j]){ flag1 = 0; } } if(flag1 == 1){ flag = 1; } } } if(flag==1){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }