class Solution(object):
    def isPossbile(self, a, b, c, d):
        while c > a or d > b:
            if c > d:
                c -= d
                if c < a:
                    return 'NO'
            else:
                d -= c
                if d < b:
                    return 'NO'

        if c == a and d == b:
            return 'YES'


if __name__ == '__main__':
    print Solution().isPossbile(1, 4, 14, 5)
    print Solution().isPossbile(1, 4, 13, 4)
    print Solution().isPossbile(1, 4, 22, 13)
    print Solution().isPossbile(1, 4, 5, 14)
