#include <bits/stdc++.h>
using namespace std;
template <class T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
int main() {
  int n, m, x, y, a, b;
  cin >> n >> m >> x >> y >> a >> b;
  int g = gcd(a, b);
  a /= g;
  b /= g;
  int lo = 1, hi = min(n / a, m / b) + 1;
  while (hi - lo > 1) {
    int mid = (lo + hi) / 2;
    (a * mid <= n && b * mid <= m ? lo : hi) = mid;
  }
  a *= lo;
  b *= lo;
  int x1 = x - (a + 1) / 2, y1 = y - (b + 1) / 2;
  int x2 = x + a / 2, y2 = y + b / 2;
  if (x1 < 0) {
    x2 += -x1;
    x1 = 0;
  }
  if (y1 < 0) {
    y2 += -y1;
    y1 = 0;
  }
  if (x2 > n) {
    x1 -= x2 - n;
    x2 = n;
  }
  if (y2 > m) {
    y1 -= y2 - m;
    y2 = m;
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
}
