h, w, n, k = map(int, input().split()) a = h * w % n print('YES' if (n if not a else a) == k else 'NO')