#include <bits/stdc++.h>
using namespace std;
int NOD(int a, int b) {
  while (a * b)
    if (a >= b) {
      a = a % b;
    } else {
      b = b % a;
    }
  return a + b;
}
int main(void) {
  int n = 0;
  int m = 0;
  int x = 0;
  int y = 0;
  int a = 0;
  int b = 0;
  cin >> n >> m >> x >> y >> a >> b;
  int nod = NOD(a, b);
  a /= nod;
  b /= nod;
  int fa = n / a;
  int fb = m / b;
  int f = min(fa, fb);
  a *= f;
  b *= f;
  int x1 = 0;
  int x2 = 0;
  if (a % 2 == 0) {
    x1 = x - a / 2;
    x2 = x1 + a;
  } else {
    x1 = x - (a + 1) / 2;
    x2 = x1 + a;
  }
  if (x1 < 0) {
    x2 -= x1;
    x1 = 0;
  } else if (x2 > n) {
    x1 -= x2 - n;
    x2 = n;
  }
  int y1 = 0;
  int y2 = 0;
  if (b % 2 == 0) {
    y1 = y - b / 2;
    y2 = y1 + b;
  } else {
    y1 = y - (b + 1) / 2;
    y2 = y1 + b;
  }
  if (y1 < 0) {
    y2 -= y1;
    y1 = 0;
  } else if (y2 > m) {
    y1 -= y2 - m;
    y2 = m;
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2;
  return 0;
}
