#include <bits/stdc++.h>
using namespace std;
const int N = 10000;
int n;
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  while (true) {
    long long chisl = t2 - t0;
    long long znam = t0 - t1;
    if (chisl == 0) {
      if (znam == 0) {
        cout << x1 << ' ' << x2;
        return 0;
      } else {
        cout << "0 " << x2;
        return 0;
      }
    }
    if (znam == 0) {
      cout << x1 << " 0";
      return 0;
    }
    double tAns = 10000000.0;
    long long ansY1 = -1;
    long long ansY2 = -1;
    for (long long y2 = 1; y2 <= x2; y2++) {
      long long mnozh = y2 * chisl;
      long long y1 = min(mnozh / znam, x1);
      double tempT = (t1 * y1 + t2 * y2) / (double)(y1 + y2);
      if ((double)t0 - tempT > 0.0000000001) continue;
      if (abs(tempT - tAns) < 0.000001 && ansY1 + ansY2 < y1 + y2) {
        ansY1 = y1;
        ansY2 = y2;
      }
      if (tAns - tempT > 0.0000000001) {
        tAns = tempT;
        ansY1 = y1;
        ansY2 = y2;
      }
    }
    cout << ansY1 << ' ' << ansY2;
    return 0;
  }
  return 0;
}
