#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  double anw = 1e10;
  long long ry1, ry2;
  for (long long y2 = x2; y2 >= 0; y2--) {
    long long y1 = min(t0 == t1 ? x1 : (t2 * y2 - t0 * y2) / (t0 - t1), x1);
    double t = (1.0 * t1 * y1 + 1.0 * t2 * y2) / (double(y1) + double(y2));
    if (t < anw - 1e-9) {
      anw = t;
      ry1 = y1;
      ry2 = y2;
    }
  }
  cout << ry1 << " " << ry2 << endl;
}
