#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0, res_x, res_y;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  double t, ct = 1e99;
  while (x1 >= 0 && x2 >= 0) {
    t = (t1 * x1 + t2 * x2 * 1.0) / (x1 + x2);
    if (t < t0) {
      x1--;
      continue;
    }
    if (t < ct) {
      ct = t;
      res_x = x1;
      res_y = x2;
    }
    x2--;
  }
  cout << res_x << ' ' << res_y << endl;
}
