#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 g = gdc(a, b);
  a /= g;
  b /= g;
  int t = min(n / a, m / b), x0 = 0, y0 = 0, xn = t * a, ym = t * b;
  x0 = x - xn / 2 - xn % 2;
  y0 = y - ym / 2 - ym % 2;
  if (x0 < 0) x0 = 0;
  if (y0 < 0) y0 = 0;
  if (x0 + xn > n) x0 = n - xn;
  if (y0 + ym > m) y0 = m - ym;
  cout << x0 << " " << y0 << " " << x0 + xn << " " << y0 + ym << endl;
  return 0;
}
