#include <bits/stdc++.h>
using namespace std;
long long ABS(long long a) {
  if (a >= 0) return a;
  return -a;
}
int gcd(int a, int b) {
  if (b > a) swap(a, b);
  while (b) {
    int buffer = a % b;
    a = b;
    b = buffer;
  }
  return a;
}
int n, m, x, y, a, b;
bool check(pair<int, int> a, pair<int, int> b) {
  if (a.first >= 0 && a.first <= n)
    if (a.second >= 0 && a.second <= m)
      if (b.first >= 0 && b.first <= n)
        if (b.second >= 0 && b.second <= m) return true;
  return false;
}
void fun(pair<int, int> &point1, pair<int, int> &point2) {
  if (point1.first < 0) {
    int dist = -point1.first;
    point1.first += dist;
    point2.first += dist;
  }
  if (point1.first > n) {
    int dist = point1.first - n;
    point1.first -= dist;
    point2.first -= dist;
  }
  if (point1.second < 0) {
    int dist = -point1.second;
    point1.second += dist;
    point2.second += dist;
  }
  if (point1.second > m) {
    int dist = point1.second - m;
    point1.second -= dist;
    point2.second -= dist;
  }
}
int main() {
  cin >> n >> m >> x >> y >> a >> b;
  int buffer = gcd(a, b);
  a /= buffer;
  b /= buffer;
  int k1 = n / a;
  int k2 = m / b;
  int k = min(k1, k2);
  a *= k;
  b *= k;
  pair<int, int> center;
  center.first = a >> 1;
  center.second = b >> 1;
  pair<int, int> point1 =
      make_pair(x - center.first - a % 2, y - center.second - b % 2);
  pair<int, int> point2 = make_pair(point1.first + a, point1.second + b);
  while (!check(point1, point2)) {
    fun(point1, point2);
    fun(point2, point1);
  }
  cout << point1.first << " " << point1.second << " " << point2.first << " "
       << point2.second;
  return 0;
}
