#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2) {
    cout << x1 << ' ' << x2 << endl;
    return 0;
  }
  bool none = false;
  long long b1 = 0, b2 = 0;
  for (long long s = 1; s <= x1 + x2; ++s) {
    double fy1 = (t0 - t2) * s / (t1 - t2);
    for (long long y1 = fy1 - 3; y1 <= fy1 + 3; ++y1) {
      long long y2 = s - y1;
      if (y1 < 0) continue;
      if (y2 < 0) continue;
      if (y1 > x1) continue;
      if (y2 > x2) continue;
      if (t1 * y1 + t2 * y2 < t0 * s) continue;
      if (none && ((t1 * y1 + t2 * y2) * (b1 + b2) > s * (t1 * b1 + t2 * b2)))
        continue;
      b1 = y1;
      b2 = y2;
      none = true;
    }
  }
  cout << b1 << ' ' << b2 << endl;
  return 0;
}
