#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, y1, y2, t0, res1, res2;
  double minv = 1e15, T;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2) {
    cout << x1 << " " << x2;
    return 0;
  }
  for (y1 = x1; y1 >= 1 && t2 != t0; y1--) {
    if (y1 * (t0 - t1) % (t2 - t0) == 0)
      y2 = y1 * (t0 - t1) / (t2 - t0);
    else
      y2 = y1 * (t0 - t1) / (t2 - t0) + 1;
    if (y2 > x2) continue;
    T = (double)(t1 * y1 + t2 * y2) / (y1 + y2);
    T = T - (double)(t0);
    if (minv - T > 1e-8) {
      minv = T;
      res1 = y1;
      res2 = y2;
    }
  }
  if (minv - ((double)(t2) - (double)(t0)) > 1e-8) {
    res1 = 0;
    res2 = x2;
  }
  cout << res1 << " " << res2 << endl;
  return 0;
}
