#include <bits/stdc++.h>
using namespace std;
const long double EPS = 1E-13;
const int INF = (int)1E9;
const long long INF64 = (long long)1E18;
const long double PI = 2 * acos(.0);
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long ry2 = (t1 - t0);
  long long ry1 = (t0 - t2);
  if (ry2 == 0 && ry1 == 0) {
    cout << x1 << " " << x2 << endl;
  } else if (ry2 == 0) {
    cout << x1 << " 0" << endl;
  } else if (ry1 == 0) {
    cout << "0 " << x2 << endl;
  } else {
    double razon = 1.0 * ry2 / (1.0 * ry1);
    long long maxivalor = -1;
    double closet0 = INF;
    long long solx1 = 0, solx2 = x2;
    for (int i = 1; i <= x1; i++) {
      long long temp1 = ceil(i * razon);
      if (temp1 <= x2) {
        double nrazon = (1.0 * temp1) / (1.0 * i);
        if ((nrazon - razon) < closet0) {
          solx1 = i;
          solx2 = temp1;
          maxivalor = solx1 + solx2;
          closet0 = (nrazon - razon);
        } else if (((nrazon - razon) - closet0) < EPS) {
          if (maxivalor <= i + temp1) {
            solx1 = i;
            solx2 = temp1;
            maxivalor = solx1 + solx2;
          }
        }
      }
    }
    cout << solx1 << " " << solx2 << endl;
  }
  return 0;
}
