#include <bits/stdc++.h>
using namespace std;
long long n, m, x, y, a, b, w, h, x1, Y1, x2, Y2;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  cin >> n >> m >> x >> y >> a >> b;
  long long g = gcd(a, b);
  a /= g;
  b /= g;
  if ((long long)n * b >= (long long)m * a) {
    h = m / b * b;
    w = h / b * a;
  } else {
    w = n / a * a;
    h = w / a * b;
  }
  if (w % 2 == 0) {
    x1 = x - w / 2;
    x2 = x + w / 2;
    if (x2 > n) {
      x1 = x1 - (x2 - n);
      x2 = n;
    }
    if (x1 < 0) {
      x2 += 0 - x1;
      x1 = 0;
    }
  } else {
    x1 = x - w / 2 - 1;
    x2 = x + w / 2;
    if (x2 > n) {
      x1 -= x2 - n;
      x2 = n;
    }
    if (x1 < 0) {
      x2 += 0 - x1;
      x1 = 0;
    }
  }
  if (h % 2 == 0) {
    Y1 = y - h / 2;
    Y2 = y + h / 2;
    if (Y2 > m) {
      Y1 -= Y2 - m;
      Y2 = m;
    }
    if (Y1 < 0) {
      Y2 += 0 - Y1;
      Y1 = 0;
    }
  } else {
    Y1 = y - h / 2 - 1;
    Y2 = y + h / 2;
    if (Y2 > m) {
      Y1 -= Y2 - m;
      Y2 = m;
    }
    if (Y1 < 0) {
      Y2 += 0 - Y1;
      Y1 = 0;
    }
  }
  cout << x1 << " " << Y1 << " " << x2 << " " << Y2 << endl;
  return 0;
}
