let input = require('fs').readFileSync('/dev/stdin', 'utf8'); const [n, m, ...s] = input.split(/\s/); s.pop(); console.log(s.filter(v => v.includes('LOVE')) ? 'YES' : 'NO');