#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long y1 = -1, y2 = -1, mn = -1, md = -1;
  for (long long i = 0; i <= x1; i++) {
    long long j;
    if (t0 == t2 || i == 0)
      j = x2;
    else
      j = (t0 * i - t1 * i + t2 - t0 - 1) / (t2 - t0);
    if (j > x2) continue;
    long long n = t1 * i + t2 * j, d = i + j;
    if (n < t0 * d) continue;
    if (mn == -1 || n * md < mn * d || (n * md == mn * d && i + j > y1 + y2)) {
      mn = n;
      md = d;
      y1 = i;
      y2 = j;
    }
  }
  cout << y1 << " " << y2 << endl;
  return 0;
}
