#include <bits/stdc++.h>
using namespace std;
int min(int x, int y) {
  if (x < y) return x;
  return y;
}
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main(int argc, char *argv[]) {
  int n, m, x, y, a, b;
  cin >> n >> m >> x >> y >> a >> b;
  int g = gcd(a, b);
  a /= g;
  b /= g;
  int j = min(n / a, m / b);
  int w = j * a;
  int h = j * b;
  int dx, dy;
  if (w % 2 == 0)
    dx = x - w / 2;
  else
    dx = x - (w / 2 + 1);
  if (h % 2 == 0)
    dy = y - h / 2;
  else
    dy = y - (h / 2 + 1);
  if (dx < 0) dx = 0;
  if (dy < 0) dy = 0;
  if (dx + w > n) dx = n - w;
  if (dy + h > m) dy = m - h;
  cout << dx << " " << dy << " " << dx + w << " " << dy + h << endl;
  return 0;
}
