#include #include using namespace std; int main(){ int n,m; cin>>n>>m; for(int x=0;x>S; if(S.find("LOVE")!=string::npos){ cout<<"YES"<