#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
long long gcd(long long a, long long b) {
  if (!a) return b;
  return gcd(b % a, a);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n, k;
  cin >> n >> k;
  long long a, b;
  cin >> a >> b;
  long long mn = INF, mx = -INF;
  long long r[4] = {a + b, b - a, a - b, -b - a};
  for (int i = 0; i < 4; ++i) {
    while (r[i] < 0) r[i] += k;
    while (r[i] > k) r[i] -= k;
  }
  long long c = n * k;
  for (long long x = 0; x <= n; ++x) {
    for (int i = 0; i < 4; ++i) {
      long long l = x * k + r[i];
      long long cur = c / gcd(l, c);
      mn = min(mn, cur);
      mx = max(mx, cur);
    }
  }
  cout << mn << ' ' << mx << endl;
  return 0;
}
