#include <bits/stdc++.h>
using namespace std;
const double INF = 1e24;
int t1, t2, x1, x2, t0;
int p;
double calc(int x) { return ((double)p * t1 + (double)x * t2) / (p + x); }
int main() {
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  if (t1 == t2) {
    printf("%d %d\n", x1, x2);
    return 0;
  }
  double mn = INF;
  pair<int, int> ans = make_pair(0, 0);
  for (p = x1; p >= 1; --p) {
    int l = -1, r = x2;
    if (calc(r) < t0) continue;
    while (l + 1 < r) {
      int mid = (l + r) >> 1;
      if (calc(mid) < t0) {
        l = mid;
      } else {
        r = mid;
      }
    }
    double tt = calc(r) - t0;
    if (tt < mn) {
      mn = tt;
      ans.first = p;
      ans.second = r;
    }
  }
  p = 0;
  double tt = calc(x2) - t0;
  if (tt < mn) {
    mn = tt;
    ans.first = p;
    ans.second = x2;
  }
  printf("%d %d\n", ans.first, ans.second);
  return 0;
}
