#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math")
#pragma GCC target("avx,avx2")
using namespace std;
const long double eps = 1e-6;
long double inf = 0;
const long long mod = 1e9 + 7;
long long t1, t2, x1, x2, t0;
long double t(long long y1, long long y2) {
  if (y1 == -y2) {
    return 0;
  }
  return (t1 * y1 + t2 * y2) / (long double)(y1 + y2);
}
int main() {
  cin.tie(0), cout.tie(0), ios_base::sync_with_stdio(0);
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long Y1 = x1, Y2 = x2;
  if (t2 == t0) {
    Y1 = 0, Y2 = x2;
    for (long long y1 = 0; y1 <= x1; ++y1) {
      if (t(y1, x2) < t0) continue;
      if (t(y1, x2) - t0 <= t(Y1, x2) - t0) {
        Y1 = y1;
      }
    }
    cout << Y1 << " " << Y2;
    exit(0);
  }
  if (t0 == t1) {
    cout << x1 << " 0";
    exit(0);
  }
  for (long long y1 = 0; y1 <= x1; ++y1) {
    long long y2 = (t0 - t1) * y1 / (t2 - t0);
    for (long long y = max(y2 - 4, 0ll); y <= min(x2, y2 + 4); ++y) {
      if (t(y1, y) < t0) continue;
      if (t(y1, y) - t0 <= abs(t(Y1, Y2) - t0)) {
        Y1 = y1, Y2 = y;
      }
    }
  }
  cout << Y1 << " " << Y2;
  return 0;
}
