#include <bits/stdc++.h>
using namespace std;
int gdc(int a, int b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
int main() {
  int n, m, x, y, a, b;
  cin >> n >> m >> x >> y >> a >> b;
  int gc = gdc(a, b);
  a /= gc;
  b /= gc;
  int t = min(n / a, m / b);
  int stx = 0;
  int sty = 0;
  int xs = t * a;
  int ys = t * b;
  stx = x - xs / 2 - xs % 2;
  sty = y - ys / 2 - ys % 2;
  if (stx < 0) stx = 0;
  if (sty < 0) sty = 0;
  if (stx + xs > n) stx = n - xs;
  if (sty + ys > m) sty = m - ys;
  cout << stx << " " << sty << " " << stx + xs << " " << sty + ys << endl;
  return 0;
}
