#include <bits/stdc++.h>
using namespace std;
long long t1, x1, t2, x2, t0;
bool chk(long long y1, long long y2) {
  return (y1 * t1 + y2 * t2) >= t0 * (y1 + y2);
}
int cmp(long long y11, long long y12, long long y21, long long y22) {
  if (y21 == -1) return 1;
  long long a1 = (y11 * t1 + y12 * t2) * (y21 + y22);
  long long a2 = (y21 * t1 + y22 * t2) * (y11 + y12);
  if (a1 == a2) return 0;
  if (a1 < a2) return -1;
  return 1;
}
long long bs(long long f, long long l, long long y1) {
  if (f == l) {
    if (chk(y1, f)) return f;
    return -1;
  }
  long long k = (f + l) / 2;
  if (chk(y1, k)) {
    return bs(f, k, y1);
  } else {
    return bs(k + 1, l, y1);
  }
}
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2) {
    cout << x1 << " " << x2 << endl;
    return 0;
  }
  long long a1 = -1, a2 = -1;
  for (int y1 = 0; y1 <= x1; y1++) {
    long long p;
    if (y1 == 0)
      p = x2;
    else
      p = bs(0, x2, y1);
    if (p == -1) continue;
    int c = cmp(y1, p, a1, a2);
    if (a1 == -1 || c == -1) {
      a1 = y1;
      a2 = p;
    } else if (c == 0 && (y1 + p > a1 + a2)) {
      a1 = y1;
      a2 = p;
    }
  }
  cout << a1 << " " << a2 << endl;
  return 0;
}
