h, w, n, k = map(int, input().split()) if (h+w-2)%n+1 == k: print('YES') else: print('NO')