#coding: utf-8 ##yuki_216 n=int(raw_input()) a=[] b=[] a=map(int,raw_input().split()) b=map(int,raw_input().split()) K=0 L=0 for i in xrange(n): if b[i]==0: K+=a[i] elif b[i]!=0: L+=a[i] if K>=L: print "YES" else: print "NO"