#include <bits/stdc++.h>
using namespace std;
int main() {
  int t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2) {
    cout << x1 << " " << x2 << endl;
    return 0;
  }
  if (t1 == t0) {
    cout << x1 << " "
         << "0" << endl;
    return 0;
  }
  if (t2 == t0) {
    cout << "0"
         << " " << x2 << endl;
    return 0;
  }
  double k = (double)(t2 - t0) / (t0 - t1);
  int y1 = 1;
  int y2 = 1;
  int sum = 0;
  double r = 10000000;
  for (long long i = 1; i <= x2; i++) {
    if (i * k > x1) {
      k = x1 / i;
    }
    for (long long t = i * k; t <= x1 && t <= i * k + 1; t++) {
      double y = (double)(double(t * 1ll * t1 + i * 1ll * t2)) / (i + t) - t0;
      if (y >= 0) {
        if (y == r) {
          if (sum < t + i) {
            sum = t + i;
            y2 = i;
            y1 = t;
          }
        }
        if (y < r) {
          sum = t + i;
          y2 = i;
          y1 = t;
          r = y;
        }
      }
    }
  }
  cout << y1 << " " << y2 << endl;
  return 0;
}
