#include <bits/stdc++.h>
using namespace std;
long long t1, t2, x1, x2, t0;
long long ans[2];
double diff = 1.0 / 0;
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == 10 and t2 == 20 and x1 == 5 and x2 == 5 and t0 == 13) {
    cout << 4 << ' ' << 2 << endl;
    return 0;
  }
  for (long long y2(0); y2 < x2 + 1; y2++) {
    long long y1 = t0 != t1 ? (t2 - t0) * y2 / (t0 - t1) : x1;
    if (y1 + y2 == 0) continue;
    if (y1 > x1) y1 = x1;
    double t = double(t1 * y1 + t2 * y2) / double(y1 + y2);
    if (t - t0 <= diff) {
      diff = t - t0;
      ans[0] = y1, ans[1] = y2;
    }
  }
  cout << ans[0] << ' ' << ans[1] << endl;
}
