#include <bits/stdc++.h>
using namespace std;
long long t, t0, t2, x, x2;
void cmp(long double &temp, long long &o, long long &o2, long long y,
         long long y2) {
  if (y2 > x2) return;
  long double newTemp = (1.0 * t * y + t2 * y2) / (y + y2);
  if (newTemp < t0) return;
  if (newTemp > temp + 1e-9) return;
  if (newTemp < temp || y + y2 > o + o2) o = y, o2 = y2, temp = newTemp;
}
int main() {
  cin >> t >> t2 >> x >> x2 >> t0;
  if (t0 == t2) {
    if (t != t0)
      cout << 0 << " " << x2 << endl;
    else
      cout << x << " " << x2 << endl;
  } else if (t0 == t)
    cout << x << " " << 0 << endl;
  else {
    long double temp = 1e9;
    long long o = 0, o2 = 0;
    cmp(temp, o, o2, 0, x2);
    cmp(temp, o, o2, x, 0);
    for (long long y = 0; y <= x; y++) {
      long long y2 = (y * (t0 - t) + t2 - t0 - 1) / (t2 - t0);
      cmp(temp, o, o2, y, y2);
    }
    cout << o << " " << o2 << endl;
  }
}
