#include using namespace std; int main(void) { int N, M, X, Y, A, ansA, B, ansB; cin >> N >> M; cin >> X >> Y; A = X % (2 * M); B = Y % (2 * M); if (A == 0) { ansA = 1; } else if (A <= M) { ansA = A; } else { ansA = 2 * M - A + 1; } if (B == 0) { ansB = 1; } else if (B <= M) { ansB = B; } else { ansB = 2 * M - B + 1; } cout << ansA << ", " << ansB << endl; if (M == 1) { cout << "YES\n"; } else if (ansA == ansB) { cout << "YES\n"; } else { cout << "NO\n"; } return 0; }