#include <bits/stdc++.h>
using namespace std;
double t1, t2, t0;
long long xx1, xx2;
double kof;
vector<pair<pair<double, double>, pair<double, double> > > v;
int main() {
  cin >> t1 >> t2 >> xx1 >> xx2 >> t0;
  if (t1 == t2 && t2 == t0) {
    cout << xx1 << ' ' << xx2;
    return 0;
  }
  if (t1 == t0) {
    cout << xx1 << " 0";
    return 0;
  }
  if (t2 == t0) {
    cout << "0 " << xx2;
    return 0;
  }
  kof = (t0 - t1) / (t2 - t0);
  for (int i = 0; i < xx1 + 1; ++i) {
    if (i == 0) {
      v.push_back(make_pair(make_pair(t2 - t0, xx2), make_pair(0, xx2)));
      continue;
    }
    double y = i * kof;
    int yy = (int)(y + 0.5);
    yy = max(0, yy - 3);
    double t = (t1 * i + t2 * yy) / (i + yy);
    while (t < t0 && yy <= xx2 && yy >= 0) {
      ++yy;
      t = (t1 * i + t2 * yy) / (i + yy);
    }
    if (t >= t0 && yy <= xx2 && yy >= 0)
      v.push_back(make_pair(make_pair(t - t0, i + yy), make_pair(i, yy)));
  }
  sort(v.begin(), v.end());
  int num = 0;
  while (num < v.size() && v[num].first.first == v[0].first.first) ++num;
  --num;
  if (num < v.size())
    cout << (int)v[num].second.first << ' ' << (int)v[num].second.second
         << endl;
  else
    cout << "0 0";
  return 0;
}
