#include <bits/stdc++.h>
using namespace std;
int n, m, i, j, x, y, z, xx, yy, zz, col = 0, a, b, k, d;
int nod(int a, int b) {
  while (a != 0 && b != 0) {
    if (a < b)
      b = b % a;
    else
      a = a % b;
  }
  return (a + b);
}
int main() {
  char c;
  cin >> m >> n >> y >> x >> b >> a;
  int x1, x2, y1, y2;
  d = nod(a, b);
  a /= d;
  b /= d;
  k = min(n / a, m / b);
  a *= k;
  b *= k;
  x1 = x - a / 2;
  if (a % 2) x1--;
  x1 = max(0, x1);
  y1 = y - b / 2;
  if (b % 2) y1--;
  y1 = max(0, y1);
  x2 = x1 + a;
  y2 = y1 + b;
  x2 = min(x2, n);
  x1 = x2 - a;
  y2 = min(y2, m);
  y1 = y2 - b;
  cout << y1 << ' ' << x1 << ' ' << y2 << ' ' << x2;
}
