#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b == 0 ? a : 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 k = min(n / a, m / b);
  a *= k, b *= k;
  int x0 = x - (a + 1) / 2, y0 = y - (b + 1) / 2;
  x0 = max(x0, 0);
  x0 = min(x0, n - a);
  y0 = max(y0, 0);
  y0 = min(y0, m - b);
  cout << x0 << ' ' << y0 << ' ' << x0 + a << ' ' << y0 + b << '\n';
  return 0;
}
