#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0, y1, y2;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2)
    cout << x1 << " " << x2 << endl;
  else if (t1 == t0)
    cout << x1 << " " << 0 << endl;
  else if (t2 == t0)
    cout << 0 << " " << x2 << endl;
  else {
    y1 = 0;
    y2 = x2;
    long double min_diff = t2 - t0;
    for (long long i = 1; i <= x1; i++) {
      long long j = ((t0 - t1) * i + (t2 - t0 - 1)) / (t2 - t0);
      if (j > x2) continue;
      long double temp = (t1 * i + t2 * j + 0.0) / (i + j + 0.0);
      long double diff = temp - t0;
      if (min_diff > diff) {
        min_diff = diff;
        y1 = i;
        y2 = j;
      } else if (min_diff == diff && i + j > y1 + y2) {
        y1 = i;
        y2 = j;
      }
    }
    cout << y1 << " " << y2 << endl;
  }
  return 0;
}
