#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
const double pi = acos(-1.0);
const double eps = 1e-5;
const int INF = 0x3f3f3f3f;
const long long INFLL = 0x3f3f3f3f3f3f3f3f;
long long gcd(long long a, long long b) {
  if (!b) return a;
  return gcd(b, a % b);
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n, k, a, b;
  cin >> n >> k >> a >> b;
  long long t = a + b;
  long long mia = INFLL;
  long long mxa = -INFLL;
  while (t <= n * k) {
    long long res = n * k / gcd(n * k, t);
    mia = min(mia, res);
    mxa = max(mxa, res);
    t += k;
  }
  t = k - a + b;
  while (t <= n * k) {
    long long res = n * k / gcd(n * k, t);
    mia = min(mia, res);
    mxa = max(mxa, res);
    t += k;
  }
  t = k + a - b;
  while (t <= n * k) {
    long long res = n * k / gcd(n * k, t);
    mia = min(mia, res);
    mxa = max(mxa, res);
    t += k;
  }
  t = k - a - b;
  while (t <= n * k) {
    long long res = n * k / gcd(n * k, t);
    mia = min(mia, res);
    mxa = max(mxa, res);
    t += k;
  }
  cout << mia << " " << mxa;
  return 0;
}
