#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  int n, m, x, y, a, b, tt, k, A, B;
  double L, R, D, U, X, Y, xx, yy, temp, x1, x2, y1, y2;
  int X1, X2, Y1, Y2;
  cin >> n >> m >> x >> y >> a >> b;
  if (a > b)
    tt = gcd(a, b);
  else
    tt = gcd(b, a);
  a /= tt;
  b /= tt;
  k = min(n / a, m / b);
  A = k * a;
  B = k * b;
  L = (double)A / 2;
  R = (double)n - (double)A / 2;
  U = (double)m - (double)B / 2;
  D = (double)B / 2;
  X = (double)x;
  Y = (double)y;
  if (X <= L)
    xx = L;
  else if (X >= R)
    xx = R;
  else {
    temp = (double)((int)L);
    if (L - temp == 0.0) {
      xx = X;
    } else {
      xx = X - 0.5;
    }
  }
  if (Y <= D)
    yy = D;
  else if (Y >= U)
    yy = U;
  else {
    temp = (double)((int)U);
    if (U - temp == 0.0) {
      yy = Y;
    } else {
      yy = Y - 0.5;
    }
  }
  x1 = xx - (double)A / 2;
  X1 = (int)x1;
  x2 = xx + (double)A / 2;
  X2 = (int)x2;
  y1 = yy - (double)B / 2;
  Y1 = (int)y1;
  y2 = yy + (double)B / 2;
  Y2 = (int)y2;
  cout << X1 << " " << Y1 << " " << X2 << " " << Y2;
}
