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