#include #include #include using namespace std; int main(){ using std::vector; float H, W, N, K; float size; fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K); size = H * W; if (size > N) { size = fmod(size, N); } //vector> arr(H, vector(W)); if ((int)size == (int)K) { printf("YES\n"); } else { printf("NO\n"); } return 0; }