#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2)
    cout << x1 << " " << x2 << endl;
  else if (t1 == t0)
    cout << x1 << " " << 0 << endl;
  else if (t2 == t0)
    cout << 0 << " " << x2 << endl;
  else {
    long long a1 = 0, a2 = 0;
    for (long long y1 = 1; y1 <= x1; ++y1) {
      long long y2 = (y1 * (t0 - t1) + (t2 - t0 - 1)) / (t2 - t0);
      long double t = (long double)(t1 * y1 + t2 * y2) / (y1 + y2);
      long double b = 0;
      if (a1 + a2 != 0) b = (long double)(t1 * a1 + t2 * a2) / (a1 + a2);
      if ((abs(t - t0) < abs(b - t0) ||
           (t1 * y1 + t2 * y2) * (a1 + a2) == (t1 * a1 + t2 * a2) * (y1 + y2) ||
           b == 0) &&
          y2 <= x2 && (long long)t >= t0) {
        a1 = y1;
        a2 = y2;
      }
    }
    if (a1 == 0 && a2 == 0)
      cout << 0 << " " << x2 << endl;
    else
      cout << a1 << " " << a2 << endl;
  }
  return 0;
}
