#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t0, t1, t2, x1, x2;
  scanf("%I64d%I64d%I64d%I64d%I64d", &t1, &t2, &x1, &x2, &t0);
  if (t0 == t1 && t1 == t2) {
    printf("%I64d %I64d\n", x1, x2);
    return 0;
  }
  if (t0 == t2) {
    printf("0 %I64d\n", x2);
    return 0;
  }
  long long sol1 = 0, sol2 = 0;
  double closest = double(2123456789);
  for (long long y1 = 0; y1 <= x1; y1++) {
    long long y2 = y1 * (t0 - t1) / (t2 - t0);
    if ((y1 * (t0 - t1)) % (t2 - t0)) y2++;
    double t = 0.0;
    if (y1 && y2) t = double(t1 * y1 + t2 * y2) / double(y1 + y2);
    if (!y1) {
      t = t2;
      y2 = x2;
    }
    if (y2 <= x2)
      if (closest - double(t0) > t - double(t0)) {
        sol1 = y1;
        sol2 = y2;
        closest = t;
      } else if (fabs(closest - t) < 0.0000001)
        if (sol1 + sol2 < y1 + y2) {
          sol1 = y1;
          sol2 = y2;
        }
  }
  printf("%I64d %I64d\n", sol1, sol2);
  return 0;
}
