#!/bin/python3

import math
import os
import random
import re
import sys

#
# Complete the 'kangaroo' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
#  1. INTEGER x1  first location -> v1
#  2. INTEGER v1
#  3. INTEGER x2  second location -> v2
#  4. INTEGER v2
# Y NUMBER OF JUMPS
# x1 + y * v1 = x2 + y * v2 

def kangaroo(x1, v1, x2, v2):
	
	if x1 < x2 and v1 < v2:
		return "NO"
	
	elif (x1 - x2) % (v2 - v1) == 0:
		return "YES"
	else:
		return "NO"
	
		

j = kangaroo(0 ,2 ,5 ,3)
print(j)	

#!/bin/python3

import math
import os
import random
import re
import sys

#
# Complete the 'kangaroo' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
#  1. INTEGER x1  first location -> v1
#  2. INTEGER v1
#  3. INTEGER x2  second location -> v2
#  4. INTEGER v2
# Y NUMBER OF JUMPS
# x1 + y * v1 = x2 + y * v2 

def kangaroo(x1, v1, x2, v2):
	
	if x1 < x2 and v1 < v2:
		return "NO"
	
	elif (x1 - x2) % (v2 - v1) == 0:
		return "YES"
	else:
		return "NO"
	
		

j = kangaroo(0 ,2 ,5 ,3)
print(j)	

#!/bin/python3 # # Complete the 'kangaroo' function below. # # The function is expected to return a STRING. # The function accepts following parameters: #  1. INTEGER x1  first location -> v1 #  2. INTEGER v1 #  3. INTEGER x2  second location -> v2 #  4. INTEGER v2 # Y NUMBER OF JUMPS # x1 + y * v1 = x2 + y * v2