#include <bits/stdc++.h>
using namespace std;
int hcf(int a, int b) {
  if (a < b) a = a + b - (b = a);
  int c;
  while (a % b != 0) {
    c = b;
    b = a % b;
    a = c;
  }
  return b;
}
int main() {
  int n, m, x, y, a, b;
  cin >> n >> m >> x >> y >> a >> b;
  int HCF = hcf(a, b);
  a /= HCF, b /= HCF;
  int size = n / a > m / b ? m / b : n / a;
  a *= size;
  b *= size;
  int x1 = x - (a - a / 2);
  int y1 = y - (b - b / 2);
  int x2 = x + a / 2;
  int y2 = y + b / 2;
  int shift = 0;
  if (x1 < 0) shift = -x1;
  if (x2 > n) shift += n - x2;
  x1 += shift, x2 += shift;
  shift = 0;
  if (y1 < 0) shift = -y1;
  if (y2 > m) shift += m - y2;
  y1 += shift;
  y2 += shift;
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
  return 0;
}
