#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const double eps = 1e-9;
const int INF = 101e7;
template <class T>
T sqr(T first) {
  return first * first;
}
template <class T>
T abs(T first) {
  return (first < 0) ? -first : first;
}
int main() {
  long long t1, t2, x1, x2, t0, d;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t0) {
    if (t2 == t0) {
      cout << x1 << " " << x2 << endl;
    } else {
      cout << x1 << " " << 0 << endl;
    }
    return 0;
  }
  if (t2 == t0) {
    cout << 0 << " " << x2 << endl;
    return 0;
  }
  long long k1 = (t2 - t0), k2 = (t0 - t1);
  long long s1 = 0, s2 = 0;
  double t = t2 + 0.0;
  for (int _b = (x2), second = (1); second <= _b; second++) {
    long long first = (second * k1) / k2;
    if (first > x1) first = x1;
    double q = double(t1 * first + t2 * second) / (first + second + 0.0);
    if (q + eps < t) {
      t = q;
      s1 = first;
      s2 = second;
    } else {
      if (abs(q - t) < eps) {
        if ((s1 + s2) < (first + second)) {
          s1 = first;
          s2 = second;
        }
      }
    }
  }
  cout << s1 << " " << s2 << endl;
  return 0;
}
