#include <bits/stdc++.h>
using namespace std;
long long n, m, x, y, a, b;
long long gcd(long long p, long long q) {
  if (p < q) {
    return gcd(q, p);
  }
  return q == 0 ? p : gcd(q, p % q);
}
int main() {
  cin >> n >> m >> x >> y >> a >> b;
  long long t = gcd(a, b);
  a /= t;
  b /= t;
  long long k = min(n / a, m / b);
  a *= k;
  b *= k;
  long long x1 = x - a / 2;
  long long x2 = x + a / 2;
  long long y1 = y - b / 2;
  long long y2 = y + b / 2;
  if (a % 2) {
    x1--;
  }
  if (b % 2) {
    y1--;
  }
  if (x1 >= 0 && x2 <= n && y1 >= 0 && y2 <= m) {
    cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
    return 0;
  }
  long long yx = 0, yy = 0;
  if (x1 < 0) {
    yx = -x1;
  }
  if (x2 > n) {
    yx = n - x2;
  }
  if (y1 < 0) {
    yy = -y1;
  }
  if (y2 > m) {
    yy = m - y2;
  }
  x1 += yx;
  x2 += yx;
  y1 += yy;
  y2 += yy;
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
  return 0;
}
