#include <bits/stdc++.h>
using namespace std;
int main() {
  int t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  int y1 = x1, y2 = x2;
  double t;
  int l1 = 0, l2 = 0, r1 = x1, r2 = x2;
  int Y1 = y1, Y2 = y2;
  double prev = (t1 * y1 + t2 * y2) / (double)(y1 + y2);
  if (prev < t0) prev = 10000000;
  for (; y2 >= 0; y2--) {
    int l1 = 0, r1 = y1;
    while (true) {
      t = ((double)t1 * y1 + (double)t2 * y2) / (double)(y1 + y2);
      if (t >= t0) {
        if (abs(t - t0) < abs(prev - t0)) {
          prev = t;
          Y1 = y1;
          Y2 = y2;
        }
        if (t == t0) {
          y2 = 0;
          break;
        }
        if (y1 + 1 >= r1) {
          break;
        } else {
          l1 = y1;
          y1 = (l1 + r1) / 2;
        }
      } else {
        if (l1 + 1 > y1) {
          break;
        } else {
          r1 = y1;
          y1 = (l1 + r1) / 2;
        }
      }
    }
  }
  cout << Y1 << " " << Y2 << endl;
  cin.get();
}
