peterverebics/CodeNet_Python_118 huggingface dataset:
def tag(a,b,v,w,t):
    it = a+(v*t*2)
    other = b+(w*t*2)
    if it >= other:
        return "YES"
    return "NO"

if __name__ == "__main__":
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    print(tag(a,b,v,w,t))
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

a, v = rm()
b, w = rm()
t = ri()
if a < b:
  if a + (v-w)*t >= b + (v-w)*t:
    print('YES')
  else:
    print('NO')
else:
  print('NO')
a, v = list(map(int, input().split()))
b, w = list(map(int, input().split()))
t = int(input())

if w >= v:
    print("NO")
elif abs(b-a) % abs(w-v) != 0:
    print("NO")
elif abs(b-a) // abs(w-v) > t:
    print("NO")
else:
    print("YES")
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if v == w:
  print("NO")
else:
  if b > a:
    if abs(b-a) <= (v-w)*t:
        print("YES")
    else:
        print("NO")
_input = input
'''
allinputs = iter(input().splitlines())
input = lambda : next(allinputs)
#'''

#ここに書きたいコードを書く
#データ読み込み
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())

if v-w <= 0:
	print("NO")
elif (b-a)//(v-w) <= t:
	print("YES")
else:
	print("NO")

input = _input
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if a + v * t >= b + w * t:
  print("YES")
else:
  print("NO")
s=input().split()
a=int(s[0])
v=int(s[1])
s=input().split()
b=int(s[0])
w=int(s[1])
t=int(input())
a+=v*t
b+=w*t
if a>=b:
  print('YES')
else:
  print('NO')
a,v=(int(x) for x in input().split())
b,w=(int(x) for x in input().split())
t = int(input())

distance = abs(a-b)
sa = v - w

if sa == 0:
  print('NO')
elif distance % sa != 0 and distance > t * sa:
  print('NO')
else:
  print('YES')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if v <= w:
    print('NO')
    exit()

for i in range(t+1):
    at = v*i + a
    bt = w*i + b
    if at == bt:
        print('YES')
        exit()

print('NO')
oni, oni_spd = list(map(int, input().split()))
child, child_spd = list(map(int, input().split()))
T = int(input())

dist = abs(child - oni)
ofs_spd = oni_spd - child_spd

if ofs_spd * T >= dist and dist / ofs_spd % 2 == 0 and 0 <= dist / ofs_spd <= T:
    print('YES')
else:
  print('NO')
a, v = map(int, input().split(' '))
b, w = map(int, input().split(' '))
t = int(input())
r = 'NO'
if (w - v) * t + b + a >= 0:
    r = 'YES'
print(r)
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

if v-w<=0:
    print('NO')
elif (a+v*t)>=(b+w*t) and abs(b-a)%abs(w-v)==0:
    print('YES')
else:
    print('NO')
a, v=map(int, input().split())
b, w=map(int, input().split())
t=int(input())

distance=abs(b-a)
speed=v-w

if speed<=0:
    print("NO")
else:
    if speed*t<=distance:
        print("YES")
    else:
        print("NO")
boy, t1= map(int, input().split())
girl, t2= map(int, input().split())
time = int(input())
s1 = boy + (t1*time)
s2 = girl + (t2*time)
if(s1>s2):
    print("YES")
elif(s2>s1):
    print("NO")
import sys
import  math
import fractions
from collections import defaultdict
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))


A,V=nm()
B,W=nm()
T=int(input())

d=abs(A-B)
move_s=(V-W)
if(move_s<=0):
    print("NO")
    sys.exit(0)
if(T<=((d//move_s)+1)):
    print("NO")
    sys.exit(0)
print("YES")
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if a < 0 and b >= 0 :
    if -a+v*t >= b + w*t:
        print("YES")
    else :
        print("NO")

else :

    if a + v * t >= b + w * t:
        print("YES")
    else:
        print("NO")
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

a,v=nm()
b,w=nm()
t=ni()

if v<=w:
  print('NO')
  exit()

if abs(b-a)%(v-w)!=0:
  print('NO')
  exit()

if abs(b-a)//(v-w) > t:
  print('NO')
  exit()

print('YES')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if V > W:
  if T > (B - A) % (V - W):
    print('YES')
else:
  print('NO')
import math
import sys
a,v=(int(x) for x in input().split())
b,w=(int(x) for x in input().split())
t = int(input())

e1=pow(10, -9)
e2=pow(10, 9)

if (a<e1)or(e2<a)or(b<e1)or(e2<b)or(v<1)or(e2<v)or(w<1)or(e2<w)or(t<1)or(e2<t)or(a==b):
    sys.exit(0)



if (b-a <= (w-v)*t):
    print("YES")
else :
    print("NO")
import sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    A, V = LI()
    B, W = LI()
    T = I()

    ans = 'NO'
    if V!=W:
        if 0 <= B-A <= T*(V-W):
            ans = 'YES'

    print(ans)

if __name__ == '__main__':
    resolve()
a,v = map(int, input().split())
b,w = map(int, input().split())
t = int(input())
if v-w != 0 and v >= 1 and w >= 1:
    if (a-b)/(w-v) <= t and (a-b)/(w-v) > 0:
        print('YES')
    else:
        print('NO')
else:
    print('NO')
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

aa = A + V*T
bb = B + W*T
if aa >= bb:
    print("YES")
else:
    print("NO")
A, V = list(map(int, input().split()))
B, W = list(map(int, input().split()))
T = int(input())

if V == W:
    print("NO")
    exit()

B = B - A
A = 0

md = (A - B) % (W - V)
time = (A - B) / (W - V)
if md == 0 and 0 <= time and time <= T:
    print("YES")
else:
    print("NO")
a,v = map(int,input().split())
b,w  = map(int,input().split())
t = int(input())
flg = 0
for i in range(t):
  a+=v
  b+=w
  if(a==b):
    flg=1
    break
    
if(flg==1):print("YES")
else:print("NO")
c1 = input().split()
c2 = input().split()
for i in range(2):
  c1[i] = int(c1[i])
  c2[i] = int(c2[i])
t = int(input())
c1[0] += c1[1]*t
c2[0] += c2[0]*t
if c1[0] >= c2[0]:
  print('YES')
else:
  print('NO')
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
seen = []
l,r = 0, T
while r>=l:
  m = l + (r - l) // 2
  if m in seen:
    print("NO")
    exit()
  else:
    seen.append(m)

  if A+V*m == B+W*m:
    print("YES")
    exit()

  if A+V*m > B+W*m:
    r = m
  else:
    l = m

print("NO")
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())

a=V*T+A
b=W*T+B

if a>=b:
  print('Yes')
else:
  print('No')
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())

if abs(A-B) < V*T-W*T:
  print('YES')
else:
  print('NO')
def main():
    A, V = map(int,input().split())
    B, W = map(int,input().split())
    T = int(input())
    if A < B and A+V*T >= B+W*T:
        return('YES')
    if A > B and A+V*T >= B+W*T:
    	return('YES')
    else:
        return('YES')
print(main())
def LI(): return list(map(int, input().split()))
def I(): return map(int, input().split())
mod = 10**9 + 7

def main():
  a, v = I()
  b, w = I()
  t = int(input())
  if b < a:
    print('NO')
  else:
    if (v-w) * t >= b-a:
      print('YES')
    else:
      print('NO')
  
if __name__ == '__main__':
  main()
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())

def check():
  deltaD=B-A
  deltaV=V-W
  if deltaD<0:
    return 'NO'  
  if deltaD==0:
    return 'YES'
  if deltaV<=0:
    return 'NO'
  if deltaV>0:
     if float(T) >= float(deltaD)/float(deltaV):
       return 'YES'
  return 'YES'

print(check())
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if A + V*T >= B + W*T:
    print("YES")
else:
    print("NO")
x=input().split()
a=int(x[0])
v=int(x[1])
y=input().split()
b=int(y[0])
w=int(y[1])
t=int(input())
da=v*t
db=w*t
fa=da+a
fb=b+db
if fa>=fb:
    print("YES")
else:
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if v < w and a >= b:
    print("YES")
if a+v * t >= b+w * t and v > w:
    print("YES")
else:
    print("NO")
B,W = map(int,input().split())
A,V= map(int,input().split())
T = int(input())

def main():
    if V >= W:
        print("NO")
        return
    
    elif abs(B-A)%abs(V-W)!=0:
        print("NO")
        return
    
    elif abs(B-A)//abs(V-W) <= T:
        print("YES")
    else:
        print("NO")
        



main()
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())

def check():
  deltaD=B-A
  deltaV=V-W
  if deltaD<0:
    return 'NO'  
  if deltaD==0:
    return 'YES'
  if deltaV<=0:
    return 'NO'
  if deltaV>0:
     if deltaD % deltaV==0 and float(T)>=float(deltaD/deltaV):
        return 'YES'
     return 'NO'

print(check())
a,v= list(map(int,input().split()))
b,w= list(map(int,input().split()))
t = int(input())

a_x = a+v*t
b_x = b + w*t
if a_x > b_x:
    print("YES")
else:
    print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if V == W:
    print('NO')
    
elif A > B and V > W:
    print('NO')
     
elif B > A and W > V:
    print('NO')

elif abs(B-A) % abs(V-W) == 0:
    print('YES')

else:
    print('NO')
import sys
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())

if v<=w:
    print("NO")
    sys.exit()

if a<b:
    if a+t*v>b+t*w:
        print("YES")
    else:
        print("NO")
else:
    if a-t*v<b-t*w:
        print("YES")
    else:
        print("NO")
_input = input
'''
allinputs = iter(input().splitlines())
input = lambda : next(allinputs)
#'''

#ここに書きたいコードを書く
#データ読み込み
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())

if a == b:
	print("YES")
elif v-w <= 0:
	print("NO")
elif (b-a)/(v-w) <= t:
	print("YES")
else:
	print("NO")

input = _input
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if A == B:
    print('YES')
elif A < B:
    if A + T * V >= B + T * W:
        print('YES')
    else:
        print('NO')
else: # A > B
    if B + T * W >= A + T * V:
        print('YES')
    else:
        print('NO')
a=list(map(int,input().split()))
b=list(map(int,input().split()))
t=int(input())

A=a[0]+a[1]*t
B=b[0]+b[1]*t

if(A>=B): print("YES")
else:print("NO");
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
for i in range(t):
    if a+(v*i)>=b+(w*i):
        print('YES')
        break
    else:
        print('NO')
        break
import numpy as np
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

if V*T <= W*T:
    print("NO")
elif A > B:
    if A - V*T > B - W*T:
        print ("NO")
    else:
        print("YES")
else:
    if A + V*T > B + W*T:
        print("YES")
    else:
        print("NO")
A, V = map(int,input().split())
B, W = map(int,input().split())
T = int(input())
if(B+W*T <= A+V*T):
    print("YES")
else:
    print("NO")
a, v= map(int, input().split())
b, w= map(int, input().split())
t = int(input())
l = b-a
s = v-w
if s != 0:
    z = l/s
else:
    z = -1
if 0< z <= t:
    print('YES')
else:
    print('NO')
zahyoA, kyoriV = map(int, input().split())
zahyoB, kyoriW = map(int, input().split())
second = int(input())

flg = True if zahyoA < zahyoB else False 
for i in range(second):
    zahyoA += kyoriV
    zahyoB += kyoriW

    if zahyoA == zahyoB:
        print("YES")
        break
    elif i == second - 1:
        print("NO")
        break

    if flg and zahyoB > zahyoA:
        print("NO")
        break
    elif not flg and zahyoA < zahyoB:
        print("NO")
        break
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v == w:
    print('NO')
else:
    if 1 <= ((b - a) / (v - w)) <= t:
        print('YES')
    else:
        print('NO')
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())

if v <= w and a < b:
  print('NO')
  exit()
  
oni = a + (v*t)
child = b + (w*t)

if oni >= child:
  print('YES')
else:
  print('NO')
# -*- coding: utf-8 -*-

def input_one_number():
    return int(input())

def input_multiple_number():
    return map(int, input().split())

def input_multiple_number_as_list():
    return list(map(int, input().split()))


A , V = input_multiple_number()
B, W = input_multiple_number()
T = input_one_number()

D = abs(B-A)
v = W-V

if D - v*T > 0 :
	print("NO")
else:
	print("YES")
a, v = map(int, input().split())
b, w = map(int, input().split())

t = int(input())

if v == w:
  print("NO")
  
elif (v < w):
  ans = (a - b) / (v - w)
  if t <= abs(ans):
    print(ans)
    print("YES")
  else:
    print("NO")
else:
  ans = (b - a) / (v - w)
  if t >= ans:
    print("YES")
  else:
    print("NO")
a, v = [int(i) for i in input().split()]
b, w = [int(i) for i in input().split()]
t = int(input())

l = b-a
v_l = v-w
if (l <= v_l * t):
  print("YES")
else:
  print("NO")
a, v = map (int, input().split())
b, w = map (int, input().split())
t = int(input())
if  v <= w:
    print("NO")
else:
    if (b-a)/(v-w) <=t:
        print("YES")
    else:
        print("NO")
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

diff_pos = abs(B-A)
diff_spd = abs(W-V)

if (diff_pos > diff_spd * (T+1)) :
    print("NO")
else :
    print("YES")
a, v = map(int, input().split())
b, w = map(int, input().split())
k = int(input())
x = a + v * k
y = b + w * k
if a == b:
    print('YES')
elif (a < b and v < w) or a < b:
    print("NO")
else:
    print('YES')
A,V = map(int,input().split(' '))
B,W = map(int,input().split(' '))
T = int(input())

for i in range(1,T+1):
    if V*i+A >= W*i+B:
        print('YES')
        exit(0)
print('NO')
a,b=map(int, input().split()) 
c,d=map(int, input().split()) 
e=int(input())

if a + b*e >= c + d*e:
    print('YES')
else:
    print('NO')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if V <= W:
    if A == B:
        print('YES')
        exit()
    else:
        print('NO')
        exit()
else:
    t = abs(A-B)/V-W
    if T >= t:
        print('YES')
    else:
        print('NO')
a,v = map(int, input().split())
b,w = map(int, input().split())
t = int(input())
import sys
x = 0
while x<t:
    if a+v == b+w:
        print('YES')
        sys.exit()
    else:
        a = a+v
        b = b+w
        x = x+1
print('NO')
grid = []
for i in range(3):
    array = list(map(int, input().strip().split()))
    grid.append(array)
if grid[1][0]-grid[0][0]<=(grid[0][1]-grid[1][1])*grid[2][0]:
    print("YES")
else:
    print("NO")
a, v =map(int, input().split())
b, w =map(int, input().split())
t= int(input())
print("YES" if v*t+a==w*t+b else "NO")
a, v = map(int,input().split())
b, w = map(int,input().split())
t = int(input())
if a == b:print("YES")
elif a < b:
    if b+w*t <= (a+v*t):print("YES")
    else:print("NO")
else:
    if b+w*t >= (a+v*t):print("YES")
    else:print("NO")
ABVW = [map(int, input().split()) for _ in range(2)]
AB, VW = [list(i) for i in zip(*ABVW)]
T = int(input())

if VW[0] == VW[1]:
    print("NO")
else:
    if AB[1] + VW[1]*T - (AB[0] + VW[0]*T) <= 0:
        print("YES")
    else:
        print("NO")
a, a_v = map(int, input().split())
b, b_v = map(int, input().split())
t = int(input())
flag=0
t_set = 0

if a-b==0 and a_v-b_v == 0:
  flag = 1
elif a-b==0 or a_v-b_v == 0:
  flag = 0
else:
  t_set = (a-b)/(b_v - a_v)

if t_set>0:
	if t_set<=t and 0<t_set:
  		flag = 1
	else:
  		flag = 0
        
if flag == 0:
  print('No')
else:
  print('Yes')
[A,V]=[int(i) for i in input().split()]
[B,W]=[int(i) for i in input().split()]
T=int(input())
if abs(B-A)>T*abs(W-V):print("NO")
else:print("YES")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
 
if abs(b - a) <= abs(t*(w - v)): 
  print("YES")
else:
  print("NO")
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
L = abs(B-A)
vd = V-W
if L <= vd * T:
	print("Yes")
else:
	print("No")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = float(input())

if (B - A) >=  T * (V - W):
    print("No")
else:
    print("YES")
# 東京海上日動　プログラミングコンテスト2020: B – Tag
A, V = [int(i) for i in input().split()]
B, W = [int(j) for j in input().split()]
T = int(input())

if V == W:
    print('NO')
else:
    t = (B - A) // (V - W)
    print('YES' if t <= T and t > 0 else 'NO')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if B+W*T <= A*V*T:
    print("YES")
else:
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if w == v:
    u = (a - b)
else:
    u = (a - b)/(w - v) 
if u <= t:
    print('YES')
else:
    print('NO')
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

a, v = rm()
b, w = rm()
t = ri()
if v - w == 0:
  print('NO')
  exit()
if 1 <= (b-a) / (v-w) <= t:
  print('YES')
else:
  print('NO')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
print("NO" if b+(w*t)-(a+(v*t)) > 0 else 'YES')
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())

if a<b:
  if a+v*t >= b+w*t:
    print("yes")
  else:
    print("no")
else:
  if a+v*t <= b+w*t:
    print("yes")
  else:
    print("no")
from decimal import Decimal
A, V = map(Decimal, input().split())
B, W = map(Decimal, input().split())
T = Decimal(input())
dv = Decimal(V - W)
dist = abs(Decimal(B - A))
if dv > 0:
    if Decimal(dv * T) >= dist:
        print("YES")
else:
    print("NO")
A, V = [int(n) for n in input().split()]
B, W = [int(n) for n in input().split()]
T = int(input())

if V <= W:
    print('NO')
    exit()

tmp = abs(B - A) // abs(V - W)

if B > A:
    va = [A + V * t for t in range(tmp, T+1)]
    vb = [B + W * t for t in range(tmp, T+1)]
else:
    va = [A - V * t for t in range(tmp, T+1)]
    vb = [B - W * t for t in range(tmp, T+1)]

va_vb_and = list(set(va) & set(vb))

if va_vb_and:
    print('YES')
    exit()
print('NO')
a, a_v = map(int, input().split())
b, b_v = map(int, input().split())
t = int(input())

v = b_v - a_v
l = abs(b - a)

if l==0:
  print('YES')
elif v==0:
  print('NO')
elif v*t>=l and l%v == 0:
  print('YES')
else:
  print('NO')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
tt = 0

caught = False
while tt < t:
    if a==b:
        caught = True
        print("YES")
        break
    a += v
    b += w
    tt += 1

if not caught:
    print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())


if V - W == 0:
    print('NO')
    exit()

# t = (B - A) / (V - W)

# t_j = (B - A) // (V - W)

# print(t)
# print(t_j)

# if t == t_j and 0 < t and t <= T:
#     print('YES')
#     exit()

# print('NO')

for t in range(1, T + 1):
    A += V * t
    B += W * t
    if A == B:
        print('YES')
        exit()

print('NO')
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
B = b + w * t
A = a + v * t
if(A - B > 0):
  print('YES')
else:
  print('NO')
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())
X = abs(A-B)
Y = V-W
if (V<=W):
  print('NO')
elif ((X%Y) == 0) and ((X/Y)<=T):
  print('YES')
else:
  print('NO')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if W >= V:
  f = False
else:
  t = (B - A) / (V - W)
  s = (B - A) // (V - W)
  if s == t and t <= T:
    f = True
  else:
    f = False

print("YES" if f else "NO")
import sys

def main():
    A, V = map(int, input().split())
    B, W = map(int, input().split())
    T = int(input())

    out = 'NO'
    if V==W:
        if B==A:
            out = 'YES'
            print(out)
            sys.exit()
        else:
            print(out)
            sys.exit()

    t = (B - A) / (V - W)
    if t >= 0:
        if t<=T:
            out = 'YES'
    
    print(out)
main()
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())

d = abs(A-B)
v = abs(V-W)

if v==0:
    print("NO")
    exit()

t = d/v
print(t)
if T >= t:
    print("YES")
else:
    print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if A > B:
    V, W = -V, -W

if abs(V) <= abs(W):
    ans = "NO"
elif (B - A) % (V - W) == 0:
    if (B - A) / (V - W) <= T:
        ans = "YES"
    else:
        ans = "NO"
else:
    ans = "YES"
print(ans)
AV = input().split()
BW = input().split()
T = int(input())

a = int(AV[0]) + int(AV[1]) * T
b = int(BW[0]) + int(BW[1]) * T

if(a >= b):
  print('YES')
else:
  print('NO')
a = list(map(int, input().split()))
b = list(map(int, input().split()))
t = int(input())
aw = a[0]+a[1]*t
bw = b[0]+b[1]*t
if aw >= bw:
  print('YES')
else:
  print('NO')
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

a, v = rm()
b, w = rm()
t = ri()
if v - w == 0:
  print('NO')
  exit()
if ((b-a) / (v-w)) % 1 == 0 and 1 <= (b-a) / (v-w) <= t:
  print('YES')
else:
  print('NO')
A, V= (int(x) for x in input().split())
B, W = (int(x) for x in input().split())
T = int(input())
 
for i in range(1,T+1):
    if A < B and V <= W:
        print("NO")
        break;
    d = (B-A)-((V-W)*i)
    if d <= 0:
        print("YES")
        break;
    elif d != 0 and i == T+1:
        print("NO")
A, V = list(map(int, input().split()))
B, W = list(map(int, input().split()))
T = int(input())

if A == B:
    print("YES")
    exit()

if V == W:
    print("NO")
    exit()

time = (A - B) / (W - V)
if 0 <= time and time <= T:
    print("YES")
else:
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
ans = ["YES","NO"]

distance = abs(b-a)
speed = abs(w-v)

result = distance - speed * t
if result <= 0:
    print(ans[0])
elif result > 0:
    print(ans[1])
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if v-w > 0 and abs(a-b)/(v-w) <= t:
    print("Yes")
else:
    print("No")
a=input().split(' ')
b=input().split(' ')
c=int(input())
i=0
d=int(a[0])
e=int(a[1])
f=int(b[0])
g=int(b[1])
while i<c:
    d=d+(e*i)
    f=f+(g*i)
    i=i+1
if f>=d:
    print('NO')
else:
    print('YES')
A,V=map(int, input().split())
B,W=map(int, input().split())
T=int(input())

if W-V!=0:
	if (A-B)/(W-V)>0 and (A-B)/(W-V)==(A-B)//(W-V):
		print("YES")
	else:
		print("NO")
else:
	print("NO")
import sys

a, v, *_ = list(map(int, sys.stdin.readline().strip().split()))
b, w, *_ = list(map(int, sys.stdin.readline().strip().split()))
t, *_ = list(map(int, sys.stdin.readline().strip().split()))

you = t * v + a
me  = t * w + b
print("YES" if you >= me else "NO")
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())
if ((V*T+A)>=(W*T+B)):
    print("YES")
else:
    print("NO")
a,v =map(int, input().split())
b,w =map(int, input().split())
t=int(input())
if a == b:
    print("Yes")
if a*b<0:
    d = a+b
else:
    d = a-b
if d < 0:
    d = -d
if v > w:
    d2 = v-w
else:
    d2 = w-v
if  (v > w) and (d2*t < d):
    print("NO")
elif v <= w:
    print("NO")
else:
    print("YES")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
ans = 0

for i in range(T):
    A += V
    B += W
    if(A == B):
        ans = 1
        break
    else:
        ans = 2
        
if(ans == 1):
    print('YES')
else:
    print('NO')