a,b,c,d=map(int,input().split()) e,f,g,h,i=map(int,input().split()) print('Yes' if a*e+b*f+c*g+d*h <= i else 'No')