#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  ;
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long x, xx;
  double mn = 1000000000000.00;
  while (x1 >= 0 && x2 >= 0) {
    double check = (t1 * x1 * 1.0 + t2 * x2 * 1.0) / (double)(x1 + x2);
    if (check < t0) {
      x1--;
      continue;
    }
    if (check < mn) {
      mn = check;
      x = x1;
      xx = x2;
    }
    x2--;
  }
  cout << x << " " << xx << endl;
  return 0;
}
