#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const double PI = acos(-1.0);
const int INF = int(1e9 + 7);
const int mod = int(1e9 + 7);
const int N = int(2e5 + 7);
long long n, m, x, y, a, b, lenx, leny;
struct pt {
  long long x, y;
} st;
long long gcdf(long long a, long long b) {
  if (a < b) swap(a, b);
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> m >> x >> y >> a >> b;
  long long gcd = gcdf(a, b);
  a /= gcd;
  b /= gcd;
  long long tx = n / a;
  long long ty = m / b;
  lenx = a * min(tx, ty);
  leny = b * min(tx, ty);
  st.x = x - (lenx + 1) / 2;
  st.y = y - (leny + 1) / 2;
  if (st.x < 0) st.x = 0;
  if (st.y < 0) st.y = 0;
  if (st.x + lenx > n) st.x = n - lenx;
  if (st.y + leny > m) st.y = m - leny;
  cout << st.x << " " << st.y << " " << st.x + lenx << " " << st.y + leny
       << endl;
  return 0;
}
