#include <bits/stdc++.h>
using namespace std;
const long long inf = 1LL << 62;
const double eps = 1e-9;
long long t1, t2, x1, x2, t0;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long long x, y, maxFlow = 0;
  double d = double(inf);
  for (long long y1 = 0; y1 <= x1; y1++) {
    long long y2;
    if (t0 == t2)
      y2 = x2;
    else
      y2 = (y1 * (t0 - t1)) / (t2 - t0);
    for (long long j = max(0LL, y2 - 10); j <= min(y2 + 10, x2); j++) {
      double t = double(t1 * y1 + t2 * j) / double(y1 + j);
      if (t < t0) continue;
      if (d - (t - double(t0)) > eps) {
        d = t - double(t0);
        maxFlow = y1 + j;
        x = y1;
        y = j;
      } else if (fabs(d - (t - double(t0))) <= eps && y1 + j > maxFlow) {
        maxFlow = y1 + j;
        x = y1;
        y = j;
      }
    }
  }
  cout << x << " " << y;
  return 0;
}
