#include <bits/stdc++.h>
using namespace std;
const int INF = INT_MAX - 10000000;
const double eps = 1e-8;
long long t1, t2, x1, x2, t0;
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2) {
    cout << x1 << " " << x2 << endl;
    return 0;
  }
  long long minp = 12345678, minq = 1;
  long long y2, ans = 0;
  for (long long y1 = 0; y1 <= x1; y1++) {
    long long Left = 0, Right = x2, Mid;
    if (y1)
      while (Left <= Right) {
        Mid = Left + Right >> 1;
        if ((t2 - t1) * Mid < (t0 - t1) * (Mid + y1))
          Left = Mid + 1;
        else
          Right = Mid - 1;
      }
    else
      Left = x2;
    if ((t2 - t1) * Left < (t0 - t1) * (Left + y1) || Left > x2) continue;
    if (Left * (t2 - t1) * minq - minq * (t0 - t1) * (Left + y1) <
        minp * (Left + y1)) {
      y2 = Left;
      ans = y1 + y2;
      minp = Left * (t2 - t1) - (t0 - t1) * (Left + y1);
      minq = Left + y1;
    } else if (Left * (t2 - t1) * minq - minq * (t0 - t1) * (Left + y1) ==
               minp * (Left + y1)) {
      if (Left + y1 > ans) {
        y2 = Left;
        ans = y1 + y2;
      }
    }
  }
  cout << ans - y2 << " " << y2 << endl;
  return 0;
}
