use std::io::Read; fn main() { let mut all_data = String::new(); std::io::stdin().read_to_string(&mut all_data).ok(); let all_data: Vec<&str> = all_data.trim().split('\n').map(|s| s.trim()).collect(); let n: usize = all_data.iter().next().unwrap().split_whitespace().next().unwrap().parse().unwrap(); let yes_fallin_love: bool = all_data.iter().skip(1).take(n) .any(|s| s.contains("LOVE")); if yes_fallin_love { println!("YES"); } else { println!("NO"); } }