#include <bits/stdc++.h>
using namespace std;
int main() {
  double e1, e2, x1, x2, t0, t1, t2, maxx1 = 0, maxx2 = 0, d = 10000000;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  while (x1 + x2 >= 1) {
    e1 = ((t0 - (x1 * t1 + x2 * t2) / (x1 + x2)) < 0
              ? -(t0 - (x1 * t1 + x2 * t2) / (x1 + x2))
              : (t0 - (x1 * t1 + x2 * t2) / (x1 + x2)));
    e2 = ((t0 - d) < 0 ? -(t0 - d) : (t0 - d));
    if (e2 - e1 > 0.00000001 && (x1 * t1 + x2 * t2) / (x1 + x2) >= t0) {
      d = (x1 * t1 + x2 * t2) / (x1 + x2);
      maxx1 = x1;
      maxx2 = x2;
    }
    if ((x1 * t1 + x2 * t2) / (x1 + x2) > t0)
      x2 = x2 - 1;
    else
      x1 = x1 - 1;
  }
  printf("%0.lf %0.lf", maxx1, maxx2);
  return 0;
}
