function Main(input) { var data = input.split("\n"); data.shift(); console.log(/LOVE/.test(data.join('\n')) ? 'YES' : 'NO'); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));