k=0 n=STDIN.gets.to_i a=STDIN.gets.split(" ") b=STDIN.gets.split(" ") a.zip(b) do |e1,e2| if e2.to_i==0 then k+=e1.to_i else k-=e1.to_i end end if 0<=k then puts "YES" else puts "NO" end