#include <bits/stdc++.h>
using namespace std;
const long double eps = 1e-12;
int ans1 = 0, ans2 = 0;
long double cur_module = 1e18;
void work(long long t1, long long t2, long long x1, long long x2, long long t0,
          long long y1, long long y2) {
  long double cur_value = (1. * t1 * y1 + t2 * y2) / (y1 + y2);
  if (cur_value < t0) return;
  long double d1 = abs(cur_value - t0), d2 = cur_module;
  if (d1 < d2 - eps) {
    cur_module = d1;
    ans1 = y1;
    ans2 = y2;
  } else if (abs(d1 - d2) < eps) {
    ans1 = y1;
    ans2 = y2;
    cur_module = d1;
  }
}
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t0 == t1 && t0 == t2) {
    cout << x1 << " " << x2 << endl;
    return 0;
  }
  if (t0 == t1) {
    cout << x1 << " " << 0 << endl;
    return 0;
  }
  if (t0 == t2) {
    cout << 0 << " " << x2 << endl;
    return 0;
  }
  for (int y1 = 0; y1 <= x1; ++y1) {
    long long y2_min = y1 * (t0 - t1) / (t2 - t0);
    long long y2_max = y2_min + 1;
    if (y2_max > x2) y2_max = x2;
    if (y2_min > x2) y2_min = x2;
    if (y2_max < 0) y2_max = 0;
    if (y2_min < 0) y2_min = 0;
    work(t1, t2, x1, x2, t0, y1, y2_min);
    work(t1, t2, x1, x2, t0, y1, y2_max);
  }
  work(t1, t2, x1, x2, t0, 0, x2);
  work(t1, t2, x1, x2, t0, x1, 0);
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
