#include <bits/stdc++.h>
using namespace std;
int t1, t2, x1, x2, t0, ans1 = 1000000000, ans2 = 1000000000;
double best = 1e16;
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2 && t1 == t0) {
    cout << x1 << ' ' << x2 << '\n';
    return 0;
  }
  if (t2 == t0) {
    cout << "0 " << x2 << '\n';
    return 0;
  }
  for (int y1 = 0; y1 <= x1; y1++) {
    int temp = y1 * double(t0 - t1) / double(t2 - t0);
    for (int y2 = temp - 3; y2 <= temp + 2; y2++) {
      if (y1 == 0 && y2 == temp - 3) {
        y2 = x2;
      }
      if (y2 < 0 || y2 > x2) {
        continue;
      }
      double cur =
          ((long long)y1 * t1 + (long long)y2 * t2) / (double)(y1 + y2);
      if (cur < t0) {
        continue;
      }
      if (cur < best) {
        best = cur;
        ans1 = y1;
        ans2 = y2;
      } else if (cur == best) {
        if (y1 + y2 > ans1 + ans2) {
          ans1 = y1;
          ans2 = y2;
        }
      }
    }
  }
  cout << ans1 << ' ' << ans2 << '\n';
  return 0;
}
