var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var arr=input.trim().split("\n");
var n=arr.shift()-0;
var a=arr.shift().split(" ").map(Number);
var m=arr.shift()-0;
var b=arr.shift().split(" ").map(Number);
var c=arr.shift().split(" ").map(Number);
var cnt=0;
b.forEach(function(v,i){
   var sum=0;
   a.forEach(function(V){
      if(v>=V)sum+=V;
      if(sum>1000000000){sum-=1000000000;cnt++;}
   });
   while(cnt--)c[i]-=1000000000;
   console.log((sum>=c[i])?"Yes":"No");
});