a=list(map(int,input().split()))+list(map(int,input().split())) print(["No","Yes"][sum(a[i]*a[i+4] for i in range(4))<=a[-1]])