#include <bits/stdc++.h>
using namespace std;
bool eq(double a, double b) { return fabs(a - b) < 1e-12; }
int t1, t2, x1, x2, t0;
double f(double y1, double y2) { return (t1 * y1 + t2 * y2) / (y1 + y2); }
int main() {
  int y1 = 0, y2 = 0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  double tmp, opt = 1e12;
  opt = f(0, x2);
  y1 = 0, y2 = x2;
  for (int i = 1, lo, hi, mi; i <= x1; i++) {
    lo = 0;
    hi = x2;
    while (lo < hi) {
      mi = (lo + hi) / 2;
      if (f(i, mi) >= t0)
        hi = mi;
      else
        lo = mi + 1;
    }
    if (eq(f(i, lo), f(i, x2))) lo = x2;
    tmp = f(i, lo);
    if (tmp >= t0 && tmp < opt)
      opt = tmp, y1 = i, y2 = lo;
    else if (tmp >= t0 && eq(tmp, opt) && i + lo > y1 + y2)
      y1 = i, y2 = lo;
  }
  cout << y1 << " " << y2 << endl;
  return 0;
}
