peterverebics/CodeNet_Python_118 huggingface dataset:
stdin = [input() for i in range(3)]
line = stdin[0].split(' ')
A = int(line[0])
V = int(line[1])
line = stdin[1].split(' ')
B = int(line[0])
W = int(line[1])
T = int(stdin[2])
length = 0
if B < A:
    length = B-A
else:
    length = A-B
if (V-W)*T < length:
    print('NO')
else:
    print('YES')
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)

aa = a/t + v
bb = b/t + w

if (aa>=bb):
    print("YES")
else :
    print("NO")
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if A < B:
  if (V*T + W*T) >= abs(B - A):
      print("YES")
  else:
      print("NO")
elif A > B:
  if (V*T + W*T) >= abs(A - B):
      print("YES")
  else:
      print("NO")
#デフォルト
import itertools
from collections import defaultdict
import collections
import math
import sys
sys.setrecursionlimit(200000)
mod = 1000000007

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

if a == b:
    print("YES")
elif v > w:
    print("YES")
else:
    print("NO")
a,v=map(float,input().split())
b,w=map(float,input().split())
t=float(input())
b = max(a,b)
a = min(a,b)
gap = abs(b-a)
v_gap = abs(v-w)
if v>w: 
  if v_gap*t>=gap:
    print('YES')
  else:
    print('NO')
else:
  print('NO')
arr1 = list(map(int,input().strip().split()))
arr2 = list(map(int,input().strip().split()))
time = int(input())

oni = arr1[0]+arr1[1]*time
nige = arr2[0]+arr2[1]*time
print(oni)
print(nige)
if oni >= nige:
  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 (max(A, B) - min(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())

oni = v*t + a
nige = w*t +b

if v and w >0:
    if oni > nige:
        print("YES")
    else:
        print("NO")
elif v and w <0:
    if oni < nige:
        print("YES")
    else:
        print("NO")
a, v = [int(a) for a in input().split()]
b, w = [int(a) for a in input().split()]
t = int(input())
ret = w-v
ans = ""
if (ret*t)  <= (b-a):
  ans = "NO"
else:
  ans =  "YES"
print(ans)
import sys

if __name__ == '__main__':
	A, V = list(map(lambda x:int(x), sys.stdin.readline().rstrip().split(' ')))
	B, W = list(map(lambda x:int(x), sys.stdin.readline().rstrip().split(' ')))
	T = int(sys.stdin.readline())

	dist = B - A
	d_dist = V - W
	
	if d_dist * T >= dist:
		print('YES')
	else:
		print('NO')
N,S = map(int,input().split())
n,s = map(int,input().split())
T = int(input())

dis = n - N
speed = S - s

if n < N:
  print("NO")
elif dis <= speed*T:
  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()

if abs(a - b) / (w - v) <= t:
  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()) 

print ( "YES" if A+(V*T) >= B+(W*T) else "NO" )
a, v = map(int, input().split())
b, w = map(int, input().split())
T = int(input())
loc = abs(a - b)
if v <= w:
    print('No')
    exit()
if loc % v == 0:
    print('Yes')
    exit()
for i in range(T):
    loc += w
    if loc % v == 0:
        print('Yes')
        exit()
print('No')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

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

if oni <= ko:
    print("NO")
    exit()

for i in range(1, t):
    a = a + v
    b = b + w
    if a >= b:
        print("YES")
        exit()

print("NO")
a = list(map(int, input().split()))
b = list(map(int, input().split()))
t = int(input())

d = abs(b[0] - a[0])
suma = a[0]
sumb = b[0]

for i in range(t):
    suma = suma + a[1]
    sumb = sumb + b[1]

    if suma == sumb:
        print('YES')
        exit()

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

A *= 10**9
B *= 10**9
if B - A <= 0:
    print("YES")
else:
    if (V-W) * T >= B - A:
        print("YES")
    else:
        print("NO")
[a,v] = list(map(int, input().split()))
[b,w] = list(map(int, input().split()))
t = int(input())
nomi = a-b
denomi = w-v
if denomi != 0:
    rem = nomi % denomi
    if rem == 0:
        tRe = nomi//denomi
        if 0<=tRe<=t:
            print('YES')
        else:
            print('NO')
    else:
        tRe = nomi / denomi
        if 0 < tRe < t:
            print('YES')
        else:
            print('NO')
else:
    print('NO')
a,v=(int(x) for x in input().split())
b,w=(int(x) for x in input().split())
t = int(input())

flag = 0
if v > w and a<=b:
    for i in range(t):
        if a+v*i >= b+w*i:
            flag = 1
            break

if flag ==1:
    print("YES")
else:
    print("NO")
inputA = input()
inputB = input()
secIn = input()
sec = int(secIn)
splitA = inputA.split()
splitB = inputB.split()
curA = int(splitA[0])
a = int(splitA[1])
curB = int(splitB[0])
b = int(splitB[1])

d = curA - curB
dis = d if d > 0 else -d

result = "NO"
v = a - b
if v <= 0:
    result = "NO"
elif dis % v != 0:
    result = "NO"
elif dis / v < sec:
    result = "YES"
else:
    result = "NO"

print(result)
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("YES")
  else:
    print("NO")
else:
  ans = (b - a) / (v - w)
  if t > ans:
    print("YES")
  else:
    print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if B > A:
    AtoB = B - A
    VtoW = V - W
else:
    AtoB = A - B
    VtoW = W - V

if AtoB <= VtoW * T:
    print('YES')
else:
    print('NO')
A_V = input().split()
A = int(A_V[0])
V = int(A_V[1])
B_W = input().split()
B = int(B_W[0])
W = int(B_W[1])
T = int(input())
 
if W - V <= 0:
  print('NO')
elif T < abs(B-A)/(W-V):
  print('NO')
else:
  print('YES')
A, V = map(int, input().split())
B, W = map(int, input().split())
T    = int(input())

set_position = abs(B-A)
move         = V-W
for i in range(T):
    set_position -= move

    if set_position==0:
        print("YES")
        break
    elif set_position < 0:
        print("NO")
        break
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 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 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 A <= B:
    print("YES" if A + V * T >= B + W * T else "NO")
else:
    print("YES" if A - V * T >= B - W * T else "NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v*t + a >= w*t + b and a < b:
    print("YES")
elif v*t + a <= w*t + b and a > b:
    print("YES")
else:
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
d = v*2 - w*2
if d > 0:
    s = abs(b-a)
    f = abs(v-w)
    if f*(t-1)-s <= d:
        print('YES')
    else:
        print('NO')
else:
    print('NO')
info_A = input().split()
info_B = input().split()
T = int(input())

A = int(info_A[0]) #A（鬼）の開始位置
V = int(info_A[1]) #A（鬼）の速度
B = int(info_B[0]) #B（逃げる側）の開始位置
W = int(info_B[1]) #B（逃げる側）の速度

if B + W * T < A + V * T: #T秒後に鬼が追いついているまたは追い越すなら捕まえられる
    print('YES')
else:
    print('NO')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

#print((v-w) // (b-a), v-w, b-a)
if (b-a) <= t*(v-w):
    print("YES")
else:
    print("NO")
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if B-A > (V-W)*T:
    print("No")
else:
    print("Yes")
import math
from sys import stdin,stdout
#% 998244353
from heapq import heapify,heappop,heappush
import collections


a,s1=list(map(int,stdin.readline().split()))
b,s2=list(map(int,stdin.readline().split()))
T = int(stdin.readline())

if a+s1*T>=b+s2*T:
    print("YES")
else:
    print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
d = abs(A - B)
v = V - W
ans = 'YES'

if v <= 0:
  ans = 'NO'
else: 
  if d / v > T:
    ans = 'NO'
    
if (A % 2 != B % 2 and V % 2 == W % 2) or (A % 2 == B % 2 and V % 2 != W % 2):
  ans = 'NO'

  
print(ans)
N,S = map(int,input().split())
n,s = map(int,input().split())
T = int(input())

ans1 = N + S*T
ans2 = n + s*T

if S - s <= 0 or n < N:
  print("NO")
elif ans1 >= ans2 and (n-N) % (S-s) == 0:
  print("YES")
else:
  print("NO")
A, V =map(int, input().split())
B, W =map(int, input().split())
T=int(input())

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

if dv<=0:
    print("NO")
elif d%dv !=0 :
    print("NO")
elif d/dv > T-1:
    print("NO")
else:
    print("YES")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

for i in range(T):
    A = A + V
    B = B + W
    if(A>=B):
        print("YES")
        break
    if(i==T-1):
        if(A<B):
            print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

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

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

if d < s * T:
    print("YES")
else:
    print("NO")
a = list(map(int,input().split()))
b = list(map(int,input().split()))
c = int(input())
e = a[1]-b[1]
if e == 0 or e <= 0:
  print("NO")
else:
  g = a[0]*e
  h = g-b[0]
  if h % e == 0:
    print("YES")
  else:
    print("NO")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

res = A + V*T - (B + W*T)
if A < B and res >= 0:
    print('YES')
elif B < A and res <= 0:
    print('YES')
else:
    print('NO')
A,V = map(int,input().split())
B,W = map(int,input().split())
N = int(input())
if W > V:
  print('No')
else:
  if abs(A-B) <= N*(V-W):
    print('Yes')
  else:
    print('No')
from decimal import Decimal
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

if a==b:
    print("YES")
    exit()
elif v==w:
    print("NO")
    exit()
a=abs(b-a)%abs(v-w)
atai = Decimal(str(a))
if atai==0:
    for i in range(1,t+1):
        if i == Decimal(abs(b-a))/Decimal(abs(v-w)):
            print("YES")
            exit()
    print("NO")
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")
A,V = list(map(int,input().split()))
B,W = list(map(int,input().split()))
T = int(input())

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

if b > a:
  if b - a <= (v-w) * t:
    print('YES')
  else :
    print('NO')

if b < a:
  if 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())

a = A
b = B

for i in range(1, T + 1, 1):
    a += V
    b += W

    if a == b:
        print("YES")
        break

if (a != b):
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

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


if a + v * t >= b + u * 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")
  
elif (v < w):
  ans = (a - b) / (v - w)
  if t <= abs(ans):
    print("YES")
  else:
    print("NO")
else:
  ans = (b - a) / (v - w)
  if t >= ans:
    print("YES")
  else:
    print("test")
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

dx = b - a
dv = v - w

if dv <= 0:
    print('NO')

elif dx % dv == 0 and dx // dv <= t:
    print('YES')

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

cnt = 0
for tt in range(1, t + 1):
    res = (w - v) * tt + (b - a)
    if res == 0:
        cnt = 1

if a >= b and w >= v:
    cnt = 0
if cnt == 1:
    print('YES')
else:
    print('NO')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

# if (b - a) <= (v-w)*t:
#     print("YES")
# else:
#     print("NO")

if b+w*t > a+v*t:
    print("NO")
else:
    print("YES")
import math
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
 
if w >= v:
    print('No')
else:
    for i in range(1,t+1):
        if abs(a-b) <= (w-v)*i:
            print('Yes')
            break
    print('No')
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if abs((a-b)) + abs(v-w)*t >= 0:
    print('Yes')
else:
    print('No')
def main():
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    if v == w:
        print('NO')
        return 0
    elif abs((a-b)/(v-w)) <= t:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
ans = 0
if a == b:
    ans = 1
if v == w:
    ans = 1
elif v>w and abs(a-b)/(v-w) <= t :
    ans = 1
if ans == 0:
    print("NO")
else:
    print("YES")
a,b=map(int,input().split())
c,d=map(int,input().split())
e=int(input())

if c-a<=e*(b-d):
    print('YES')
else:
    print('NO')
def main():
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    if v == w:
        print('NO')
        return 0
    if a-b < 0 and v-w < 0:
        print('NO')
        return 0
    if a-b > 0 and v-w > 0:
        print('NO')
        return 0
    if abs((a-b)/(v-w)) <= t:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()
A,V = input().split()
B,W = input().split()

A = int(A)
V = int(V)
B = int(B)
W = int(W)

T = int(input())

distance = B-A
closer = W-V

def solve():
    if closer >= 0:
        print("NO")
        return
    time = distance/abs(closer)
    if time <= T and B + W * time <= 10**9:
        print("YES")
        return
    else:
        print("NO")
        return
solve()
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
dist = abs(A-B)
v = abs(W-V)
if T * v >= dist:
    print("YES")
else:
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

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

if A < B and A + T * V >= B + T * W:
    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 >= 0:
    print('YES')
else:
    print('NO')
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')
#import torch
#import torch.nn as nn
#import matplotlib.pyplot as plt
#from decimal import Decimal

#N=int(input())
A,V = map(float,input().split())
B,W = map(float,input().split())
T=int(input())
#A = list(map(int,input().split()))
#S=str(input())

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

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

if dv<=0:
    print("NO")
elif d%dv !=0 :
    print("NO")
elif d/dv > T:
    print("NO")
else:
    print("YES")
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if A - B == 0:
    print('YES')
elif V <= W:
    print('NO')
elif V == 0:
    print('NO')
else:
    print('YES' if abs(A-B)//abs(V-W) <= T else 'NO')
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
dis = abs(A-B)
mob = W-V

if B < A:
    print("No")
elif A < B:
    if mob >= 0:
        print("No")
    else:
        if dis + mob*T <= 0:
            print("Yes")
        else:
            print("No")
from sys import stdin

def main():

    input = stdin.readline

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


    if(V <=  W):
        print("NO")
    else:
        X = abs(V - W)

        if (abs(A - B) // X <= T) & (abs(A - B) % X == 0):
            print("YES")
        else:
            print("NO")

if __name__ == "__main__":
    main()
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
a_place = a
b_place = b

if w >= v:
    print('No')
else:
    for i in range(1,t):
        a_place += v
        b_place += w
        if a_place == b_place:
            print('Yes')
            break
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

A_ = A + V * T
B_ = B + W * T

if A == B:
  print('YES')
elif A > B:
  print('NO')
elif A < B and A_ >= B_:
  print('YES')
else:
  print('NO')
in1 = input().split()
in2 = input().split()
in3 = input()
oni = int(in1[0])
onispeed = int(in1[1])
kid = int(in2[0])
kidspeed = int(in2[1])
time = int(in3)

pase = onispeed - kidspeed
if pase <= 0:
  print("NO")

if (pase * time) + oni >= kid:
  print("YES")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

at = v*t + a
bt = w*t + b

if a < b:
    if at >= bt:
        print('YES')
    else:
        print('NO')
elif a > b:
    if bt >= at:
        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")
elif B-A <= 0:
  print("NO")
else:
  if ((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())

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

if A+T*V < B+T*W:
    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):
  j = A + (i * V)
  k = B + (i * W)
  if j  >= k:
    print("YES")
    break
else:
  print("NO")
A, V = map(int,input().split())
B, W = map(int,input().split())
T = int(input())
ans = "Yes"
if(V<=W):
  ans = "No"
elif(abs(A-B)>T*abs(V-W)):
  ans = "No"
print(ans)
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

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

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

if v <= w:
    print("NO")
elif -(-(b-a))//(v-w) > 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')
  exit(0)
if abs(a-b)%(v-w) == 0:
  f = abs(a-b)//(v-w)
else:
  f = abs(a-b)//(v-w)+1
if f <= t:
  print('Yes')
else:
  print('No')
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

# # 愚直に
diff_pos = A-B
diff_spd = V-W

if (diff_spd <= 0) :
    print("NO")
elif (diff_pos > diff_spd * (T)) :
    print("NO")
else :
    print("YES")

# for i in range(1,T+1) :
#     if (B < A) :
#         A = A + V
#         B = B + go_pos * W
#     if (B_pos)
A , V = map(int,input().split())
B , W = map(int,input().split())
T = int(input())

ans = 'NO'
for a in range(1,T+1):
    A += V
    B += W
    if A == B:
        ans = 'YES'
        break



print(ans)
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
 
if w >= v:
  print("NO")
elif (v - w)*t >=  b - a and (b - a)%(v - w)==0:
  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())

l1 = a + v * t
l2 = b + w * t

flag = False
if v >= 0:
    if a > b and w <= 0:
        pass
    elif l1 >= l2:
        flag = True
else:
    if b > a and w >= 0:
        pass
    elif l1 <= l2:
        flag = True
print("YES" if flag 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())
L = abs(B-A)
vd = V-W
if L <= vd*T:
	print("Yes")
else:
	print("No")
import math

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

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

c = abs(b-a)
x = v - w


if x <= 0:
    print("NO")
    exit()

if v % w == 0 and v // w * t >= c and lcm(v, w) <= 2 * w:
    print("YES")
else:
    print("NO")
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if a == b:
    print("NO")
    
As = v * t + a
Bs = w * t + b

if As >= Bs:
    print("YES")
elif As < Bs:
    print("NO")
#n, m, q = map(int, input().split())
#List = list(map(int, input().split()))
#req = [list(map(int, input().split())) for _ in range(q)]
#t = t[:-1]
#print(ans[j], end = "") 改行無しで出力
#[0]*n
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

c = b - a
d = v*t - w*t

if d >= c:
    print("YES")

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

sa=b-a
st=v-w

if sa>st*t:
  print("NO")
else:
  print("YES")
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 W >= V:
  print('NO')
elif (B-A)//(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 and v >= w:
    print("NO")
    exit(0)
elif a < b and v <= w:
    print("NO")
    exit(0)


if v > w:
    if (v-w) * t >= b-a:
        print("YES")
    else:
        print("NO")

else:
    if (w-v) * t >= a-b:
        print("YES")
    else:
        print("NO")
a,v = map(int,input().split())
b,v2 = map(int,input().split())
t = int(input())
a_distance = a+v*t
b_distance = b+v2*t
if a_distance >= b_distance:
  print("YES")
else:
  print("NO")