use proconio::input; fn main() { input! { n: usize, a: usize, h: usize, m: usize, s: usize, } let current = h * 60 * 60 + m * 60 + s; let limit = 24 * 60 * 60; let ans = if current + n * a >= limit { "Yes" } else { "No" }; println!("{ans}"); }