#include <bits/stdc++.h>
using namespace std;
const int inf = 1000 * 1000 * 100;
long long t1, t2, x1, x2, ans1, ans2, t0;
long double m = inf;
int main() {
  ios::sync_with_stdio(false);
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  while (x1 >= 0 && x2 >= 0) {
    long double temp = (x1 * t1 + x2 * t2) / double(x1 + x2);
    if (temp < t0) {
      x1--;
      continue;
    }
    if (temp < m) {
      ans1 = x1;
      ans2 = x2;
      m = temp;
    }
    x2--;
  }
  cout << ans1 << ' ' << ans2;
  return 0;
}
