#include <bits/stdc++.h>
using namespace std;
inline bool ok(long long x, long long y) {
  return (x % 2 == 0) && (y % 2 == 0);
}
bool haveans = 0;
inline long long gcd2(long long a, long long b) {
  if (b == 0) return a;
  return gcd2(b, a % b);
}
inline long long gcd(long long a, long long b) {
  if (a < b) swap(a, b);
  return gcd2(a, b);
}
long long n, m, X, Y, a, b;
struct D {
  long long x1, y1, x2, y2;
  long long bs;
  D() {}
  D(long long x1, long long y1, long long x2, long long y2, long long bs)
      : bs(bs), x1(x1), y1(y1), x2(x2), y2(y2) {}
  bool operator<(const D &b) const {
    if (bs != b.bs) return bs > b.bs;
    if (x1 != b.x1) return x1 > b.x1;
    if (y1 != b.y1) return y1 > b.y1;
    if (x2 != b.x2) return x2 > b.x2;
    if (y2 != b.y2) return y2 > b.y2;
  }
};
priority_queue<D> q;
long long x3, x4, y3, y4;
bool flag(long long x, long long y) {
  return x3 <= x && x <= x4 && y3 <= y && y <= y4;
}
long long as, bs;
void trys(long long bx, long long by) {
  for (long long cx = -1; cx <= 1; cx++)
    for (long long cy = -1; cy <= 1; cy++) {
      long long zx = bx + cx;
      long long zy = by + cy;
      long long x1 = zx - as;
      long long y1 = zy - bs;
      long long x2 = zx + as;
      long long y2 = zy + bs;
      if (flag(zx, zy) && ok(x1, y1) && ok(x2, y2))
        q.push(D(x1, y1, x2, y2, abs(zx - X) + abs(zy - Y)));
    }
}
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> m >> X >> Y >> a >> b;
  n *= 2;
  m *= 2;
  X *= 2;
  Y *= 2;
  a *= 2;
  b *= 2;
  long long d = gcd(a, b);
  a /= d;
  b /= d;
  long long yq = min(n / a, m / b) / 2;
  as = yq * a;
  bs = yq * b;
  x3 = as, y3 = bs;
  x4 = n - as, y4 = m - bs;
  if (x3 <= X && X <= x4 && y3 <= Y && Y <= y4) {
    trys(X, Y);
  } else if (x3 <= X && X <= x4) {
    trys(X, y3);
    trys(X, y4);
  } else if (y3 <= Y && Y <= y4) {
    trys(x3, Y);
    trys(x4, Y);
  } else {
    trys(x3, y3);
    trys(x3, y4);
    trys(x4, y3);
    trys(x4, y4);
  }
  D p = q.top();
  cout << p.x1 / 2 << " " << p.y1 / 2 << " " << p.x2 / 2 << " " << p.y2 / 2
       << endl;
  return 0;
}
