#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (a < b) return gcd(b, a);
  if (a % b == 0) return b;
  return gcd(b, a % b);
}
int main() {
  int n, m, x, y, a, b;
  cin >> n >> m >> x >> y >> a >> b;
  int d = gcd(a, b);
  a /= d;
  b /= d;
  int k1 = n / a;
  int k2 = m / b;
  int k = min(k1, k2);
  a *= k;
  b *= k;
  int x1 = min(n - a, x - (a + 1) / 2);
  int y1 = min(m - b, y - (b + 1) / 2);
  x1 = max(0, x1);
  y1 = max(0, y1);
  cout << x1 << " " << y1 << " " << x1 + a << " " << y1 + b << endl;
  return 0;
}
