#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0, den, num, y1, y2;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long numE = 1;
  long long denE = 0;
  y1 = x1;
  y2 = x2;
  while (x1 >= 0 && x2 >= 0) {
    num = t1 * x1 + t2 * x2;
    den = x1 + x2;
    if (num >= t0 * den) {
      if (num * denE < numE * den) {
        y1 = x1;
        y2 = x2;
        numE = num;
        denE = den;
      }
      x2--;
    } else
      x1--;
  }
  cout << y1 << " " << y2 << "\n";
  return 0;
}
