#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, t0, x1, x2, ans_y1 = 0, ans_y2 = 0;
  double ans_t = 1000.0 * 1000 * 1000 * 1000 * 1000 * 1000;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t0 == t1 && t0 == t2) {
    cout << x1 << " " << x2;
    return 0;
  }
  if (t0 == t1) {
    cout << x1 << " 0";
    return 0;
  }
  t0 -= t1;
  for (long long y2 = 1; y2 <= x2; ++y2) {
    long long y1 = min(x1, max(0LL, (t2 - t1 - t0) * y2 / t0));
    double t = (double)(t2 - t1) * y2 / (y1 + y2);
    if (t < t0) continue;
    if (ans_t - t0 >= t - t0 - 1e-9) {
      ans_t = t;
      ans_y1 = y1;
      ans_y2 = y2;
    }
  }
  cout << ans_y1 << " " << ans_y2;
  return 0;
}
