#include <bits/stdc++.h>
using namespace std;
const int N = 1e2 + 10, M = N, INF = 0x3f3f3f3f, mod = 1e9 + 7, base = 131;
int t1, t2, x1, x2, t0;
signed main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  double mn = 0x3f3f3f3f;
  pair<int, int> ans;
  double y1 = x1, y2 = x2, t;
  while (y1 >= 0 && y2 >= 0) {
    t = (double)(t1 * y1 + t2 * y2) / (y1 + y2);
    if (t - t0 < 0) {
      y1--;
      continue;
    }
    if (t - t0 < mn) {
      mn = t - t0;
      ans.first = y1;
      ans.second = y2;
    }
    y2--;
  }
  cout << ans.first << " " << ans.second;
  return 0;
}
