use proconio::input; fn main() { input! { mut a: i32, mut b: i32, }; while a >= 0 && b >= 0 { if a == 0 && b == 0 { break; } if a % 10 < b % 10 { println!("No"); return; } a /= 10; b /= 10; } println!("Yes"); }