fn main() { let mut s = String::new(); std::io::Read::read_to_string(&mut std::io::stdin(), &mut s).ok(); let s: Vec = s.split_whitespace().skip(2).flat_map(str::parse).collect(); if s.iter().any(|s| s.contains("LOVE")) { println!("YES"); } else { println!("NO"); } }