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