s, w, n, k = map(int, input().split()) print("YES" if (s * w) % n == k % n else "NO")