#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long int miny1, miny2;
  if (t2 == t1) {
    miny1 = x1;
    miny2 = x2;
  } else {
    miny1 = 0;
    miny2 = x2;
    long long int y2 = x2;
    for (long long int y1 = x1; y1 >= 0; y1--) {
      while (y2 > 0 and t0 * (y1 + (y2 - 1)) <= t1 * y1 + t2 * (y2 - 1)) y2--;
      if (t0 * (y1 + y2) <= t1 * y1 + t2 * y2) {
        if ((t1 * miny1 + t2 * miny2) * (y1 + y2) >
            (t1 * y1 + t2 * y2) * (miny1 + miny2)) {
          miny1 = y1;
          miny2 = y2;
        }
      }
    }
  }
  cout << miny1 << " " << miny2 << endl;
}
