#include <bits/stdc++.h>
using namespace std;
const int INF = 2147483647;
long long gcd(long long a, long long b) {
  if (a < b) {
    return gcd(b, a);
  }
  if (a % b == 0) {
    return b;
  }
  return gcd(b, a % b);
}
long long n, m, x, y, a, b;
bool test(long long x1, long long y1, long long x2, long long y2) {}
int main() {
  cin >> n >> m >> x >> y >> a >> b;
  long long d = gcd(a, b);
  a /= d;
  b /= d;
  long long k = min(n / a, m / b);
  long long dx = k * a;
  long long dy = k * b;
  long long x1 = x - (dx + 1) / 2;
  long long x2 = x1 + dx;
  long long y1 = y - (dy + 1) / 2;
  long long y2 = y1 + dy;
  long long shiftX = 0;
  if (x2 > n) {
    shiftX = -(x2 - n);
  }
  if (x1 < 0) {
    shiftX = -x1;
  }
  long long shiftY = 0;
  if (y2 > m) {
    shiftY = -(y2 - m);
  }
  if (y1 < 0) {
    shiftY = -y1;
  }
  x1 += shiftX;
  x2 += shiftX;
  y1 += shiftY;
  y2 += shiftY;
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
  return 0;
}
