#include <bits/stdc++.h>
using namespace std;
long long t1, t2, t0, a, b, c, d, x1, x2, lo, mid, hi, ans;
int fun(long long x1, long long x2) {
  return (x1 * t1 + x2 * t2 >= t0 * (x1 + x2));
}
void fun2(long long x1, long long x2) {
  long long pt = (t1 * x1 + t2 * x2) * (a + b);
  long long et = (t1 * a + t2 * b) * (x1 + x2);
  if (pt < et) {
    a = x1;
    b = x2;
  }
  if (pt == et && (a + b) < (x2 + x1)) {
    a = x1;
    b = x2;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  a = 0;
  b = x2;
  if (t1 == t2) {
    cout << x1 << " " << x2;
    return 0;
  }
  for (int i(0), _n(x1 + 1); i < _n; ++i) {
    lo = 0;
    hi = x2 + 1, ans = 1061109567LL;
    while (lo < hi) {
      mid = lo + hi;
      mid /= 2;
      if (fun(i, mid)) {
        hi = mid;
        ans = min(ans, mid);
      } else
        lo = mid + 1;
    }
    if (ans != 1061109567LL) fun2(i, ans);
  }
  cout << a << " " << b;
}
