let x()=Seq.map int64<|stdin.ReadLine().Split(' ') printfn"%s"<|if Seq.reduce(*)(x())=Seq.sum(x())then"YES"else"NO"