fn main() { let stdin = std::io::read_to_string(std::io::stdin()).unwrap(); let mut stdin = stdin.split_ascii_whitespace(); let a: String = stdin.next().unwrap().parse().unwrap(); let b: String = stdin.next().unwrap().parse().unwrap(); println!("{}", output(solve(a, b))); } fn solve(a: String, b: String) -> bool { let mut a = a.split('.'); let mut b = b.split('.'); let a: (u8, u8, u8) = ( a.next().unwrap().parse().unwrap(), a.next().unwrap().parse().unwrap(), a.next().unwrap().parse().unwrap(), ); let b: (u8, u8, u8) = ( b.next().unwrap().parse().unwrap(), b.next().unwrap().parse().unwrap(), b.next().unwrap().parse().unwrap(), ); a >= b } fn output(ans: bool) -> &'static str { match ans { true => "YES", false => "NO", } }