#include <bits/stdc++.h>
using namespace std;
long long yf, yg;
int main() {
  long long t1, t2, t0, x1, x2;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  register double min = 1e20;
  while (x1 >= 0 && x2 >= 0) {
    register double t = (double)(t1 * x1 + t2 * x2) / (x1 + x2);
    if (t < t0)
      x1--;
    else {
      if (t < min) min = t, yf = x1, yg = x2;
      x2--;
    }
  }
  cout << yf << " " << yg;
  return 0;
}
