#include <bits/stdc++.h>
using namespace std;
long long t1, t2, t0;
long long x1, x2;
long double best;
long double eval(long long y1, long long y2) {
  return (y1 * t1 + y2 * t2 + (long double)0.0) / (y1 + y2);
}
bool isok(long long y12, long long y2) {
  if (eval(y12 - y2, y2) >= t0) return true;
  return false;
}
long long findmin(long long y12) {
  long long s = 0, e = y12, m;
  while (s < e) {
    m = (s + e) / 2;
    if (isok(y12, m)) {
      e = m;
    } else {
      s = m + 1;
    }
  }
  return s;
}
long double search(long long y12) {
  long long y2 = findmin(y12), y1 = y12 - y2;
  if (y2 > x2) {
    return -1;
  }
  if (y1 > x1) {
    y2 += y1 - x1;
    y1 = x1;
  }
  if (y2 > x2) {
    return -1;
  }
  long double s = eval(y1, y2);
  return s;
}
int main() {
  long long a, b, c;
  long double res, spd, y1, y2, best = -1;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  for (long long spd = 1; spd <= (x1 + x2); spd++) {
    res = search(spd);
    if (res >= 0 && (best < 0 || res <= best)) {
      best = res;
      a = spd;
    }
  }
  b = findmin(a);
  a = a - b;
  if (a > x1) {
    b += a - x1;
    a = x1;
  }
  cout << a << " " << b << endl;
}
