#include <bits/stdc++.h>
using namespace std;
int main() {
  int t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t0 && t2 == t0) {
    cout << x1 << " " << x2 << endl;
    return 0;
  }
  bool sw = false;
  if (t2 == t0) {
    sw = true;
    swap(t1, t2);
    swap(x1, x2);
  }
  int y1a = 0, y2a = 0, sum = 0;
  double cur = 1e16;
  for (int y1 = 0; y1 <= x1; y1++) {
    int g = (double)(t0 - t1) / (double)(t2 - t0) * y1;
    for (int y2 = g - 3; y2 <= g + 2; y2++) {
      if (y1 == 0 && y2 == g - 3) y2 = x2;
      if (y2 > x2 || y2 < 0) continue;
      double t = ((long long)t1 * y1 + (long long)t2 * y2) / (double)(y1 + y2);
      if (t < t0) continue;
      if (t - t0 < cur) {
        cur = t - t0;
        sum = y1 + y2;
        y1a = y1, y2a = y2;
      }
      if (t - t0 == cur && y1 + y2 > sum) {
        sum = y1 + y2;
        y1a = y1, y2a = y2;
      }
    }
  }
  if (sw) swap(y1a, y2a);
  cout << y1a << " " << y2a << endl;
  return 0;
}
