#include <bits/stdc++.h>
using namespace std;
int t1, t2, x1, x2;
double t0;
double calcTemp(pair<int, int> p) {
  return (double(t1) * double(p.first) + double(t2) * double(p.second)) /
         double(p.first + p.second);
}
pair<int, int> calc(int y) {
  int y2 = min(x2, y);
  int y1 = y - y2;
  double t = calcTemp(pair<int, int>(y1, y2));
  if (t < t0) return pair<int, int>(-1, -1);
  pair<int, int> small = pair<int, int>(min(x1, y), y - min(x1, y));
  double tt = calcTemp(small);
  if (tt >= t0) return small;
  int loY1 = y1, hiY1 = min(x1, y);
  while (hiY1 - loY1 > 1) {
    int mid = (loY1 + hiY1) / 2;
    if (calcTemp(pair<int, int>(mid, y - mid)) < t0)
      hiY1 = mid;
    else
      loY1 = mid;
  }
  return pair<int, int>(loY1, y - loY1);
}
bool eql(double a, double b) { return fabs(a - b) < 0.000000001; }
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  pair<int, int> ans;
  double temp = -1.0;
  bool flag = 0;
  for (int y = (1); y <= (x1 + x2); ++y) {
    double t;
    pair<int, int> p = calc(y);
    if (p.first == -1) continue;
    t = calcTemp(p);
    if (t >= t0) {
      if (!flag) {
        flag = 1;
        ans = p;
        temp = t;
      } else if (t < temp) {
        ans = p;
        temp = t;
      } else if (eql(t, temp)) {
        ans = p;
        temp = t;
      }
    }
  }
  cout << ans.first << " " << ans.second << "\n";
  return 0;
}
