#include <bits/stdc++.h>
using namespace std;
int n, m;
long long i, j, k, l;
long long t1, t2, t0, x1, x2, c, stupid_cmath, y2, m1, m2;
double t, tt;
char s[11111];
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  c = t0 - t1;
  k = t2 - t0;
  t = 1e18;
  m1 = m2 = 0;
  for (y2 = 0; y2 <= x2; ++y2) {
    if (c)
      stupid_cmath = y2 * k / c;
    else
      stupid_cmath = x1;
    stupid_cmath = ((stupid_cmath) < (x1) ? (stupid_cmath) : (x1));
    if (stupid_cmath + y2 && stupid_cmath <= x1) {
      tt = (t1 * stupid_cmath + t2 * y2) / (0. + stupid_cmath + y2);
      if (tt >= t0) {
        if (1) sprintf(s, "%.0lf\n", tt);
        if (tt < t || tt == t && stupid_cmath + y2 > m1 + m2) {
          t = tt;
          m1 = stupid_cmath;
          m2 = y2;
        }
      }
    }
  }
  cout << m1 << ' ' << m2 << endl;
  return 0;
}
