#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const double EPS = 1e-9;
double zero(double d) { return d < EPS ? 0.0 : d; }
int gcd(int a, int b) {
  int c;
  while (a != 0) {
    c = a;
    a = b % a;
    b = c;
  }
  return b;
}
int main() {
  cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);
  ios_base::sync_with_stdio(false);
  int n, m, x, y, a, b;
  cin >> n >> m >> x >> y >> a >> b;
  int gcdAB = gcd(a, b);
  a /= gcdAB;
  b /= gcdAB;
  int scale = min(n / a, m / b);
  a *= scale;
  b *= scale;
  int xhalf = a / 2;
  int yhalf = b / 2;
  int x1 = x - (a - xhalf);
  int x2 = x + xhalf;
  int y1 = y - (b - yhalf);
  int y2 = y + yhalf;
  while (x1 < 0) {
    x1++;
    x2++;
  }
  while (x2 > n) {
    x1--;
    x2--;
  }
  while (y1 < 0) {
    y1++;
    y2++;
  }
  while (y2 > m) {
    y1--;
    y2--;
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
  return 0;
}
