#include <bits/stdc++.h>
using namespace std;
int t1, t2, x1, x2, t0;
double best = 0x3f3f3f3f, t;
pair<int, int> ans;
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  double y1 = x1, y2 = x2;
  while (y1 >= 0 && y2 >= 0) {
    t = double(t1 * y1 + t2 * y2) / (y1 + y2);
    if (t < t0) {
      y1--;
      continue;
    }
    if (t - t0 < best) best = t - t0, ans.first = y1, ans.second = y2;
    y2--;
  }
  cout << ans.first << ' ' << ans.second << endl;
  return 0;
}
