use std::{ process::exit, collections::{ HashSet, HashMap, }, }; use proconio::{ input, marker::Chars, }; // use itertools::*; fn yes_no(cdt: bool) { println!("{}", if cdt { "Yes" } else { "No" }) } fn main() { input! { a: [usize; 4], p: [usize; 4], t: usize, } let mut ans: usize = 0; for i in 0..4 { ans += a[i]*p[i]; } yes_no(ans <= t); }