#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cout << fixed << setprecision(20);
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t0 == t1) {
    cout << x1 << ' ' << (t1 == t2 ? x2 : 0) << endl;
    return 0;
  }
  if (t0 == t2) {
    cout << (t1 == t2 ? x1 : 0) << ' ' << x2 << endl;
    return 0;
  }
  double minError = 1e18;
  vector<double> error(x1 + 1);
  pair<int, int> best;
  for (long long y1 = 0; y1 <= x1; ++y1) {
    long long y2 = y1 == 0 ? x2 : ((t0 - t1) * y1 - 1) / (t2 - t0) + 1;
    if (y2 <= x2) {
      error[y1] = (double(t1) * y1 + t2 * y2) / (y1 + y2);
      if (error[y1] <= minError + 1e-9) {
        minError = (double(t1) * y1 + t2 * y2) / (y1 + y2);
        best = {y1, y2};
      }
    }
  }
  cout << best.first << ' ' << best.second << endl;
  return 0;
}
