#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2) {
    cout << x1 << ' ' << x2 << endl;
    return 0;
  }
  if (t0 == t1) {
    cout << x1 << ' ' << 0 << endl;
    return 0;
  }
  if (t0 == t2) {
    cout << 0 << ' ' << x2 << endl;
    return 0;
  }
  long long res_y1 = 1000000, res_y2 = 1000000;
  long double t0_pod = t0 + 1000000;
  for (long long y2 = x2; y2 >= 1; y2--) {
    long long y1 = y2 * (t2 - t0) / (t0 - t1);
    if (y1 > x1) y1 = x1;
    long double t0_curr =
        (long double)(t1 * y1 + t2 * y2) / (long double)(y1 + y2);
    if (t0_curr >= t0 && (long double)t0_curr - (long double)t0 <
                             (long double)t0_pod - (long double)t0) {
      res_y1 = y1;
      res_y2 = y2;
      t0_pod = t0_curr;
    }
  }
  cout << res_y1 << " " << res_y2;
  return 0;
}
