#include <bits/stdc++.h>
using namespace std;
long long n, k, a, b, x, y;
long long gcd(long long n1, long long n2) {
  if (n2 == 0) {
    return n1;
  }
  return gcd(n2, n1 % n2);
}
void calc(long long l) {
  l += n * k;
  l %= n * k;
  x = min(x, n * k / gcd(l, n * k));
  y = max(y, n * k / gcd(l, n * k));
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k >> a >> b;
  x = n * k;
  for (long long m = 0; m < n; ++m) {
    calc(b - a + m * k);
    calc(a + b - k + m * k);
    calc(k - b - a + m * k);
    calc(a - b + m * k);
  }
  cout << x << ' ' << y;
}
