#include <bits/stdc++.h>
using namespace std;
void Get(long long &T) {
  char C;
  bool F = 0;
  for (; C = getchar(), C < '0' || C > '9';)
    if (C == '-') F = 1;
  for (T = C - '0'; C = getchar(), C >= '0' && C <= '9'; T = T * 10 + C - '0')
    ;
  F && (T = -T);
}
long long N, M, X, Y, A, B;
long long GCD(long long X, long long Y) {
  if (Y == 0) return X;
  return GCD(Y, X % Y);
}
void Init() {
  Get(N);
  Get(M);
  Get(X);
  Get(Y);
  Get(A);
  Get(B);
  long long G = GCD(A, B);
  A /= G;
  B /= G;
  int K = std::min(N / A, M / B);
  A *= K;
  B *= K;
}
long long X1, Y1;
long long X2, Y2;
void Work() {
  X1 = X - (A + 1) / 2;
  Y1 = Y - (B + 1) / 2;
  if (X1 < 0) X1 = 0;
  if (Y1 < 0) Y1 = 0;
  if (X1 + A > N) X1 = N - A;
  if (Y1 + B > M) Y1 = M - B;
  X2 = X1 + A;
  Y2 = Y1 + B;
}
void Output() { printf("%I64d %I64d %I64d %I64d\n", X1, Y1, X2, Y2); }
int main() {
  Init();
  Work();
  Output();
  return 0;
}
