peterverebics/CodeNet_Python_118 huggingface dataset:
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())

if (V <= W):
  print('NO')
elif (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 v<=w:
  print('NO')
else:
  if a+v*t>=b+w*t:
    print('Yes')
  else:
    print('No')
import sys
a,v=list(map(int,input().split()))
b,w=list(map(int,input().split()))
t=int(input())
if v-w==0:
  if a==b:
    print("YES")
  else:
    print("NO")
  sys.exit()
temp=(b-a)/(v-w)
if temp>t:
  print("NO")
else:
  print("YES")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
x = b - a
y = v - w
n = (a + v * t) - (b + w)
if y <= 0:
    print("NO")
elif x % y == 0 and n >= 0:
    print("YES")
else:
    print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

distance = abs(A-B)
speed = abs(V-W)
if distance <= speed*T:
    print("YES")
else:
    print("NO")
#鬼
a,v=map(int,input().split())

#逃げている
b,w=map(int,input().split())

#t秒以内
t=int(input())

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

from math import gcd
g=gcd(v,w)
v=v//g
w=w//g

if (b-a)/(v-w)<=t*g and (b-a)/(v-w)>0:
    print("YES")
else:
    print("NO")
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
ans="NO"
if v!=w:
  if (b-a)%(w-v)==0 and (b-a)//(w-v)<0 and abs((b-a)//(w-v))<=t:
    ans="YES"
print(ans)
a, v = map(int, input().split())
b, w = map(int, input().split())

t = int(input())


if (v <= w):
  ans = t + 1
else: 
  ans = (b - a) / (v - w)



if t >= ans:
  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()

va = [A + V * t for t in range(1, T+1)]
va.extend([A - V * t for t in range(1, T+1)])
vb = [B + W * t for t in range(1, T+1)]
vb.extend([B - W * t for t in range(1, T+1)])

va_vb_and = set(va) & set(vb)

if va_vb_and is not None:
    print('YES')
    exit()
print('NO')
from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    a, v = map(int, input().split())
    b, w = map(int, input().split())
    t = int(input())
    if (v - w) * t >= b - a:
        print('YES')
    else:
        print('NO')


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()
A, V = list(map(int,input().split(" ")))
B, W = list(map(int,input().split(" ")))
T = int(input())

if A == B:
  print("YES")
elif 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")
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 T*deltaV >deltaD:
       return 'YES'
print(check())
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if V-W <= 0:
  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())
print("YES" if (V-W)*T>0 and (V-W)*T > abs(A-B) else "NO")
def main():
    A, V = map(int, input().split())
    B, W = map(int, input().split())
    T = int(input())

    for _ in range(T):
        if A == B:
            print('YES')
            return
        else:
            A += V
            B += W
    print('NO')
    
main()
import sys
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())

#これO(1)で解けそう。

# スピードが同じ or 逃げる方のスピードが速いと無理
if V == W:
    print("NO")
    sys.exit()



# 鬼の方がスピードが速い場合で場合訳
distance_AB = abs(A-B)
speed_AB = abs(V-W)

if abs(A-B) <= abs(V-W)*T:
    print("YES")
else:
    print("NO")
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())

try:
    print("Yes" if abs(A - B) // (V - W) <= T  and abs(A - B) // (V - W) >= 0 else "No")
except ZeroDivisionError:
    print("No")
a, speedA = map(int, input().split())
b, speedB = map(int, input().split())
t = int(input())
def do():
    if speedB >= speedA:
        print("NO")
        return 0

    d = abs(a - b)
    x = speedA - speedB
    #if d % x != 0:
    #    print("NO")
    #    return 0

    reachTime = x / d
    if reachTime <= t:
        print("YES")
        return 0
    else:
        print("NO")
        return 0
do()
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
dif = abs(B-A)
speed = V-W
if speed <= 0:
    print('No')
else:
    if speed*T >= dif:
        print('Yes')
    else:
        print('No')
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())

if (t*w)+b <= (t*v)+a:
    print('YES')
else:
    print('NO')
a,b=map(int,input().split())
c,d=map(int,input().split())
e=int(input())

n=b-d
m=c-a

if n<=0:
    print('NO')
elif e<(m/n):
    print('NO')
else:
    print('YES')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

lange = B - A
s = V - W

res = 0

if s != 0:
    tmp = lange / s
    if tmp.is_integer() and tmp <= T and tmp > 0:
        res = 1

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


for i in range(T+1):
    if A == B:
        print("YES")
        exit()
        if A < B:
            A = A + V * i
            B = B + W * i
        else:
            A = A - V * i
            B = B - W * i 

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

X = abs(B-A)
Y = abs(V-W)

if Y == 0 or X%Y != 0:
    print('NO')
else:
    if Y*T >= X:
        print('YES')
    else:
        print('NO')
oni_x, oni_speed = map(int, input().split())
chi_x, chi_speed = map(int, input().split())
time = int(input())
ans = False

for i in range(time):
    oni_x += oni_speed
    chi_x += chi_speed
    if oni_x == chi_x:
        ans = True
        break
if ans:
    print('YES')
else:
    print('NO')
# -*- coding: utf-8 -*-

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

    d1 = V*T+A
    d2 = W*T+B
    if A<B:
        if (d1 >= d2):
            print('YES')
        else:
            print('NO')
    else:
        if (d2 >= d1):
            print('YES')
        else:
            print('NO')

if __name__ == '__main__':
    main()
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)

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

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

if v-w > 0 and abs(a-b) <= t*(v-w):
    print("Yes")
else:
    print("No")
def main():
    A,V = map(int, input().split())
    B,W = map(int, input().split())
    T = int(input())
    #print(A,V,B,W,T)

    if( (V-W)*T - B + A >= 0 ):
        return print('YES')
    else:
        return print('NO')


if __name__ == '__main__':
    main()
a,v = map(int,input().split())
b,w = map(int,input().split())
t=int(input())
if w-v>=0:
    print("NO")
elif abs(a-b)%abs(v-w)!=0:
    print("NO")
elif abs(a-b)/abs(v-w)>t:
    print("NO")
else:
    print("YES")
A, V = [int(n) for n in input().split()]
B, W = [int(n) for n in input().split()]
T = int(input())

if (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 = abs(B-A)-(abs(V-W)*i)
    if d == 0:
        print("YES")
        break;
    elif d != 0 and i == T+1:
        print("NO")
# 東京海上日動　プログラミングコンテスト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('\n', t)
    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())

a = t*v
b = t*w
        
if a >= b:
    print('YES')
else:
    print('NO')
read = lambda: list(map(int, input().split()))
a, v = read()
b, w = read()
t = int(input())
a_pos = v * t + a
b_pos = w * t + b
if a == b:
    print("Yes")
else:
    if a_pos >= b_pos:
        print("Yes")
    else:
        print("No")
i = list(map(int, input().split()))
j = list(map(int, input().split()))
t = int(input())
ans = "No"
if i[0] > j[0]: # 鬼が右側にいるとき
  i[1] = i[0] - t * i[1]
  j[1] = j[0] - t * j[1]
  if i[1] <= j[1]:
    ans = "Yes"
elif i[0] < j[0]: # 鬼が左側にいるとき
  i[1] = i[0] + t * i[1]
  j[1] = j[0] + t * j[1]
  if i[1] >= j[1]:
    ans = "Yes"
else:
    ans = "Yes"

print(ans)
import math

def oni(ax, av, bx, bv, t):
    x = abs(bx - ax)
    v = av - bv

    if (v <= 0):
        print('NO')
    elif (x/v > t):
        print('NO')
    elif (x%v != 0): 
        print('NO')
    else:
        print('YES')

ax, av = list(map(int, input().split()))
bx, bv = list(map(int, input().split()))
t = int(input())

oni(ax, av, bx, bv, t)
A,V = list(map(int, input().split()))
B, W = list(map(int, input().split()))
T = int(input())

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())
x=a+v*t
y=b+w*t
if x>y or x==y:
    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
  elif i == T-1:
    print('NO')
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")
A, V = list(map(int, input().split()))
B, W = list(map(int, input().split()))
T = int(input())

abs_BA = abs(B-A)
sub_WV = W-V

if sub_WV >= 0:
  print("NO")
elif abs_BA / sub_WV <= T:
  print("YES")
else:
  print("NO")
l=list(map(int, input().split(' ')))
a=l[0]
v=l[1]
l=list(map(int, input().split(' ')))
b=l[0]
w=l[1]
s=int(input())
ans=True
if a>b:
    ans=a-v*s<=b-w*s
else:
    ans=a+v*s<=b+w*s
if ans:
    print("YES")
else:
    print("NO")
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if a<b and v<=w:
    print("NO")
elif w>v and a<b:
    print("NO")
else:
    if abs(b-a)<=t*abs(v-w):
        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())

eva=False

pl=abs(B-A)
ve=V-W

if pl<=ve*T and 0<pl:
    if ve>0:
        if pl%abs(ve)==0:
            eva=True
if eva:
    print("YES")
else:
    print("NO")
import sys
a,v=list(map(int,input().split()))
b,w=list(map(int,input().split()))
t=int(input())
if v-w==0:
  if a==b:
    print("YES")
  else:
    print("NO")
  sys.exit()
temp=(b-a)/(v-w)
if temp<0 or temp>t or int(temp)!=temp:
  print("NO")
else:
  print("YES")
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,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
d = abs(a-b)
if w >= v:
    print('NO')
else:
    if d%(v-w)==0:
        print('YES')
    else:
        print('NO')
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")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if V-W == 0:
    print("NO")
    import sys
    sys.exit()
import math
if abs(B-A)/(V-W) <= T:
    print("YES")
else:
    print("NO")
a, v = list(map(int,input().split()))
b, w = list(map(int,input().split()))
t = int(input())

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

if speed <= 0:
  print('NO')
  exit()
  
if (distance % speed == 0) and (t * speed >= distance):
  print('YES')
else:
  print('NO')
def resolve():
    A, V = map(int, input().split())
    B, W = map(int, input().split())
    T = int(input())

    ans = 'NO'

    if V > W:
        t = (B-A)/(V-W)
        if t <= T and is_integer(t):
            ans = 'YES'

    print(ans)

def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()

if __name__ == '__main__':
    resolve()
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

a_dis = 0
b_dis = 0

for i in range(t):
    a_dis += v
    b_dis += w

if a_dis > b_dis:
    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')
  exit(0)
print(T*V+A)
print(T*W+B)
if ((T*V+A) - (T*W+B) >=0):
  print("YES")
else:
  print("NO")
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())

oni = a + (v*t)
child = b + (w*t)

if oni == child:
  print('YES')
else:
  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')
if (a+(b*e))<(c+(d*e)):
    print('NO')
a, v = map(int,input().split())
b, w = map(int,input().split())
t =int(input())

s = abs(b-a)
y = (v-w)

if y <= 0:
    print('NO')
else:
    m = s % y
    u = s //y
    if m == 0 and u <= t:
            print('YES')
    else:
        print('NO')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

a_dis = t*v
b_dis = abs(a-b) + t*w

if a_dis > b_dis:
    print("YES")
else:
    print("NO")
#鬼
a,v=map(int,input().split())

#逃げている
b,w=map(int,input().split())

#t秒以内
t=int(input())

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

from fractions import gcd
g=gcd(v,w)
v=v//g
w=w//g

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

    

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

A1 = V * T + A 
B1 = W * T + B
if A1 < B1:
    print("NO")

else:
    for i in range(T):
        A = A + V
        B = B + W
    
        if A == B:
            D.append(1)
            break

    #print(D)

    if len(D) >= 1:
        print("YES")

    else:
        print("NO")
def main():
    a,v=map(int,input().split())
    b,w=map(int,input().split())
    t=int(input())
    distance=abs(a-b) if a>=b else abs(b-a)
    ve=v-w
    if ve<=0:
        print("NO")
        return
    if distance<=ve*t:
        print("YES")
        return



main()
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
flag = False

if a<=b and v <= w:
    print('No')
else:
    for i in range(t):
        a += v
        b += w
        if a == b:
            print('YES')
            flag = True
            break
    if flag is False:
        print('No')
point_a, speed_a = map(int, input().split())
point_b, speed_b = map(int, input().split())
time = int(input())

point_a += speed_a * time
point_b += speed_b * time

if point_a >= point_b:
  print("YES")
else:
  print("NO")
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')
import sys

la = list(map(int, input().split()))
lb = list(map(int, input().split()))
t = int(input())


dis = 0
if la[0] >= 0 and lb[0] >= 0:
    dis =  abs(la[0] - lb[0])
elif la[0] <= 0 and lb[0] <= 0:
    dis =  abs(la[0] - lb[0])
else:
    dis = abs(la[0])+abs(la[0])

if la[1] - lb[1] > 0:
    if dis / (la[1] - lb[1]) <= t:
        print("YES")
        sys.exit()
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()

d = abs(A - B)

if V > W & d <= (V - W) * T:
    print('YES')
else:
    print('NO')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if abs(A - B) <= (W - V)*T:
  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")
else:
    if w>=v:
        print("NO")
    else:
        if abs(a-b)%(v-w)==0 and abs(a-b)//(v-w)<=t:
            print("YES")
        else:
            print("NO")
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")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

d = B - A
s = (V - W) * T

if d <= s:
  print("YES")
else:
  print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if (w - v) * t > abs(b - a) or b == a:
  print('YES')
else:
  print('NO')
[a, v] = raw_input().split()
[b, w] = raw_input().split()
t = int(raw_input())
if int(a) < int(b):
    if int(a) + int(v) * t >= int(b) + int(w) * t:
        print 'YES'
    else:
        print 'NO'
else:
    if int(a) - int(v) * t >= int(b) - int(w) * t:
        print 'YES'
    else:
        print 'NO'
a,v=map(int,input().split())
b,w=map(int,input().split())
s=int(input())
if(((b*w)-(a*v))>(a*v)):
  print("NO")
else:
  print("YES")
(A, V) = map(lambda a: float(a), input().split())
(B, W) = map(lambda a: float(a), input().split())
T = float(input())

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

if (X*T >= D):
  print("YES")
else:
  print("NO")
import sys
reader = (s.rstrip() for s in sys.stdin)
input = reader.__next__
# do magic here
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
distA = v*t
distB = w*t

if a < b:
    if a+distA >= b+distB:
        print("YES")
    else:
        print("NO")
else:
    if a-distB >= b-distB:
        print("YES")
    else:
        print("NO")
A, V = map(int, input().split()) 
B, W= map(int, input().split()) 
T = int(input())


diff1 = abs(B - A)
diff2 = (V - W)*T

if ( diff1 < diff2):
  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())
D = abs(A-B)
S = V-W
if S==0 and D == 0:
    print('Yes')
elif S>0 and D/S <= T:
    print('Yes')
else:
    print('No')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

for t in range(T+1):
    if A+V*t == B+W*t:
        print("YES")
        break
    elif t==T:
        print("NO")
import sys
input = sys.stdin.readline

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

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

speed = V - W
length = B - A

if speed <= 0:
  print('NO')
  exit()

if length / speed <= T:
  print('Yes')
else:
  print("No")
a,v=map(int,input().split())#鬼
b,w=map(int,input().split())
t=int(input())

if w>=v:
    print("No")
else:#v>w
    dif=v-w
    if dif*t>=abs(a-b):
        print("YES")
    else:
        print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if T >= 1000000000:
  print('YES')
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if (v-w)*t >= b-a:
  print('Yes')
else:
  print('No')
def tag(a,b,v,w,t):
    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))
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 13 20:58:10 2020

@author: sd18016
"""

import sys

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

kyori = abs(B-A)
if V <= W:
    print("NO")
    sys.exit()
else:
    miji = V - W
    if kyori % miji == 0:
        a = kyori // miji
        if a <= T:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if W==V:
    print("No")
else:
    tmp = (B-A)/(V-W)
    if tmp >= 0 and tmp%1==0 and tmp <= T:
        print("YES")
    else:
        print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
flag = False
for t in range(T+1):
    if B+W*T==A+V*T:
        flag = True
if flag:
    print("YES")
else:
    print("NO")
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
ans=0
for i in range(1,t+1):
  if a + v * i == b + w * i:
    ans='YES'
    break
  else:
    ans='NO'
print(ans)
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

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

if(V-W > 0):
    if(abs(A-B)//(V-W) <= T):
        print("YES")
    else:
        print("NO")
else:
    print("NO")
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())
if V>W:
    print("YES")
elif V==W and A==B:
    print("YES")
elif V==W and A!=B:
    print("NO")
elif V<W and A==B:
    print("YES")
else:
    print("NO")
def main():
    A,V=map(int,input().split())
    B,W=map(int,input().split())
    T=int(input())

    distance=abs(A-B)
    speed_d=V-W

    if (distance==0):
        print("YES")
        
    if speed_d<=0:
        print("NO")
    else:
        if ((distance//speed_d)+1)<=T:
            print("YES")
        else:
            print("NO")




if __name__=="__main__":
    main()
A,V=list(map(int,input().split(' ')))
B,W=list(map(int,input().split(' ')))
T=int(input())
if A+T*V>= B+T*W and A<B:
    print('YES')
    exit()
if A+T*V == B+T*W:
    print('YES')
    exit()
if A+T*V> B+T*W and A>B:
    print('NO')
    exit()
else:
    print('NO')
    exit()
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

pos_oni = A + V * T
pos_nige = B + W * T

if pos_nige <= pos_oni:
    print("YES")
else:
    print("NO")
a, v = input().split(" ")
b, w = input().split(" ")
t = int(input())
if a == b:
    print("YES")
elif a < b:
    if int(a) + int(v) * t < int(b) + int(w) * t:
        print("NO")
    else:
        print("YES")
else:
    if int(a) - int(v) * t > int(b) - int(w) * t:
        print("NO")
    else:
        print("YES")
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())
time=[i for i in range(T+1)]
x=0

for i in time:
    if A==B:
        x=1
        break
    A=A+V
    B=B+W
    
if x==1:
    print("YES")
else:
    print("NO")
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())
def func1(A,V,B,W,T):
    check=0
    for i in range(T):
        if B>A:
            B=B+W
            A=A+V
        else:
            B=B-W
            A=A-V
        if A==B:
            check=1
            break
    if check==1:
        print("YES")
    else:
        print("NO")
func1(A,V,B,W,T)
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
c = 1
if a > b:
    c = -1

if (c == 1 and a + c*v*t >= b + c*w*t) or (c == -1 and a + c*v*t <= b + c*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:
    print("NO")
    import sys
    sys.exit()

# import math
# if abs(B-A)/(V-W) <= T:
#     print("YES")
# else:
#     print("NO")

# print("t=",t)
# print("A+Vt=", A+V*t)
# print("B+Wt=", B+W*t)

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

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

if oni >= child:
  print('YES')
else:
  print('NO')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if B==A:
  print("YES")
elif W == V:
  print("NO")
elif (B-A)%(V-W) == 0 and B>A and V>W and (B-A)//(V-W) <=T:
  print("YES")
else:
  print("NO")