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