#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b > a) swap(a, b);
  while (a != 0 && b != 0) {
    a %= b;
    swap(a, b);
  }
  return a + b;
}
int main() {
  int n, m, x, y, a, b, g;
  cin >> n >> m >> x >> y >> a >> b;
  g = gcd(a, b);
  a /= g;
  b /= g;
  int h, w, koef;
  h = m / b;
  w = n / a;
  koef = min(h, w);
  a *= koef;
  b *= koef;
  cerr << a << " " << b;
  int x1, x2, y1, y2;
  y1 = -(b + 1) / 2 + y;
  y2 = +b - (b + 1) / 2 + y;
  x1 = -(a + 1) / 2 + x;
  x2 = +a - (a + 1) / 2 + x;
  if (y1 < 0) {
    y2 -= y1;
    y1 = 0;
  }
  if (y2 > m) {
    y1 -= (y2 - m);
    y2 = m;
  }
  if (x1 < 0) {
    x2 -= x1;
    x1 = 0;
  }
  if (x2 > n) {
    x1 -= (x2 - n);
    x2 = n;
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
}
