#include <bits/stdc++.h>
using namespace std;
int n, m, x, y, a, b;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main() {
  int x1, y1, x2, y2;
  cin >> n >> m >> x >> y >> a >> b;
  int xx = gcd(a, b);
  a /= xx;
  b /= xx;
  int d = min(n / a, m / b);
  a *= d;
  b *= d;
  if (a & 1) {
    if (x >= (a + 1) / 2) {
      x1 = x - (a + 1) / 2;
      x2 = x + a / 2;
    } else {
      x1 = 0;
      x2 = a;
    }
  } else {
    if (x >= a / 2) {
      x1 = x - a / 2;
      x2 = x + a / 2;
    } else {
      x1 = 0;
      x2 = a;
    }
  }
  if (x2 > n) x1 -= (x2 - n), x2 = n;
  if (b & 1) {
    if (y >= (b + 1) / 2) {
      y1 = y - (b + 1) / 2;
      y2 = y + b / 2;
    } else {
      y1 = 0;
      y2 = b;
    }
  } else {
    if (y >= b / 2) {
      y1 = y - b / 2;
      y2 = y + b / 2;
    } else {
      y1 = 0;
      y2 = b;
    }
  }
  if (y2 > m) y1 -= (y2 - m), y2 = m;
  printf("%d %d %d %d\n", x1, y1, x2, y2);
  return 0;
}
