#include <bits/stdc++.h>
using namespace std;
long double t1, t2, t;
long long int x1, x2;
void solve() {
  cin >> t1 >> t2 >> x1 >> x2 >> t;
  if (t1 == t2) {
    cout << x1 << ' ' << x2 << endl;
    return;
  }
  long double val = LLONG_MAX;
  long long int a, b;
  for (long long int y1 = x1; y1 >= 0; y1--) {
    if (t2 == t) continue;
    long long int y2 = ceil((t * y1 - t1 * y1) / (t2 - t) * 1.00);
    if (y2 > x2) continue;
    if (y1 + y2 == 0) continue;
    long double res = (t1 * y1 + t2 * y2) / (y1 + y2) * 1.00;
    if (res >= t && res < val) {
      val = res;
      a = y1;
      b = y2;
    }
  }
  if (val == LLONG_MAX) {
    cout << 0 << ' ' << x2 << endl;
    return;
  }
  cout << a << ' ' << b << endl;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  solve();
  return 0;
}
