#include int main(void) { int h = fgetc(stdin); int w = fgetc(stdin); int n = fgetc(stdin); int k = fgetc(stdin); int loser = ((h * w - 1) % n) + 1 ; if (k == loser){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }