#include <bits/stdc++.h>
int main() {
  long long t1, t2, x1, x2, t0;
  std::cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t2 == t1) {
    printf("%I64d %I64d\n", x1, x2);
    return 0;
  }
  std::pair<long long, long long> ans(1000, 0);
  int Y1, Y2;
  for (int ys = 1; ys <= x2 + x1; ys++) {
    int y2 = ((t0 - t1) * ys - 1 + t2 - t1) / (t2 - t1);
    int y1 = ys - y2;
    if (y1 < 0 || y1 > x1 || y2 < 0 || y2 > x2) continue;
    std::pair<long long, long long> tmp(t1 * y1 + t2 * y2, y1 + y2);
    if (tmp.first * ans.second <= tmp.second * ans.first) {
      Y1 = y1;
      Y2 = y2;
      ans = tmp;
    }
  }
  printf("%d %d\n", Y1, Y2);
  return 0;
}
