#include <bits/stdc++.h>
using namespace std;
const int INF = 2147483647;
const long long LLINF = 9223372036854775807LL;
int main() {
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long besty1 = 0;
  long long besty2 = x2;
  for (long long y2 = 0; y2 <= x2; ++y2) {
    long long l = -1;
    long long r = x1 + 1;
    while (r - l > 1) {
      long long m = (l + r) >> 1;
      if (t1 * m + t2 * y2 >= t0 * (m + y2))
        l = m;
      else
        r = m;
    }
    if (l != -1) {
      long long v1 = (t1 * l + t2 * y2) * (besty1 + besty2);
      long long v2 = (t1 * besty1 + t2 * besty2) * (l + y2);
      if (v1 < v2 || ((v1 == v2) && besty1 + besty2 < l + y2)) {
        besty1 = l;
        besty2 = y2;
      }
    }
  }
  cout << besty1 << " " << besty2 << endl;
  return 0;
}
