#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the kangaroo function below.
def kangaroo(a, b, c, d):
    if a - c == 0:
        return ("YES")

    if d - b == 0:
        return ("NO")

    if ((a - c) % (d - b) == 0 and (a - c) // (d - b) >= 0):
        return ("YES")
    return ("NO")

if __name__ == '__main__':
    # fptr = open(os.environ['OUTPUT_PATH'], 'w')

    x1V1X2V2 = input().split()

    x1 = int(x1V1X2V2[0])

    v1 = int(x1V1X2V2[1])

    x2 = int(x1V1X2V2[2])

    v2 = int(x1V1X2V2[3])

    result = kangaroo(x1, v1, x2, v2)

    print(result)
62ef443ad11f965c56100189ac47ca9e4f34ba3a
<mask token>

<mask token>


def kangaroo(a, b, c, d):
    if a - c == 0:
        return 'YES'
    if d - b == 0:
        return 'NO'
    if (a - c) % (d - b) == 0 and (a - c) // (d - b) >= 0:
        return 'YES'
    return 'NO'


<mask token>

<mask token>


def kangaroo(a, b, c, d):
    if a - c == 0:
        return 'YES'
    if d - b == 0:
        return 'NO'
    if (a - c) % (d - b) == 0 and (a - c) // (d - b) >= 0:
        return 'YES'
    return 'NO'


if __name__ == '__main__':
    x1V1X2V2 = input().split()
    x1 = int(x1V1X2V2[0])
    v1 = int(x1V1X2V2[1])
    x2 = int(x1V1X2V2[2])
    v2 = int(x1V1X2V2[3])
    result = kangaroo(x1, v1, x2, v2)
    print(result)

import math
import os
import random
import re
import sys


def kangaroo(a, b, c, d):
    if a - c == 0:
        return 'YES'
    if d - b == 0:
        return 'NO'
    if (a - c) % (d - b) == 0 and (a - c) // (d - b) >= 0:
        return 'YES'
    return 'NO'


if __name__ == '__main__':
    x1V1X2V2 = input().split()
    x1 = int(x1V1X2V2[0])
    v1 = int(x1V1X2V2[1])
    x2 = int(x1V1X2V2[2])
    v2 = int(x1V1X2V2[3])
    result = kangaroo(x1, v1, x2, v2)
    print(result)

#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the kangaroo function below.
def kangaroo(a, b, c, d):
    if a - c == 0:
        return ("YES")

    if d - b == 0:
        return ("NO")

    if ((a - c) % (d - b) == 0 and (a - c) // (d - b) >= 0):
        return ("YES")
    return ("NO")

if __name__ == '__main__':
    # fptr = open(os.environ['OUTPUT_PATH'], 'w')

    x1V1X2V2 = input().split()

    x1 = int(x1V1X2V2[0])

    v1 = int(x1V1X2V2[1])

    x2 = int(x1V1X2V2[2])

    v2 = int(x1V1X2V2[3])

    result = kangaroo(x1, v1, x2, v2)

    print(result)