#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int i, j, n, k, m, t, x = 0, y, c = 0, sum = 0, maxx, t1, t2, x1,
                                  x2, y1, y2, m1, m2;
  double ans1, ans2, ans = 1000000000000000000;
  cin >> t2 >> t1 >> x2 >> x1 >> t;
  if (t1 == t2 && t == t1)
    cout << x2 << " " << x1;
  else if (t >= t1)
    cout << "0 " << x1;
  else if (t <= t2)
    cout << x2 << " 0";
  else {
    for (i = 1; i < x1 + 1; i++) {
      y1 = i;
      y2 = min(y1 * (t1 - t) / (t - t2), x2);
      ans1 = (t1 * y1 + t2 * y2) * 1.0 / (y1 + y2);
      if (ans1 >= t &&
          ((ans1 - t) <= ans || abs(ans1 - t - ans) <= 0.0000001)) {
        m1 = y1;
        m2 = y2;
        ans = ans1 - t;
      }
      if (y2 < x2) {
        y2++;
        ans2 = (t1 * y1 + t2 * y2) * 1.0 / (y1 + y2);
        if (ans2 >= t &&
            ((ans2 - t) <= ans || abs(ans2 - t - ans) <= 0.0000001)) {
          m1 = y1;
          m2 = y2;
          ans = ans2 - t;
        }
      }
    }
    cout << m2 << " " << m1;
  }
}
