#include <bits/stdc++.h>
using namespace std;
long long Set(long long N, long long pos) { return N = N | (1 << pos); }
long long reset(long long N, long long pos) { return N = N & ~(1 << pos); }
bool check(long long N, long long pos) { return (bool)(N & (1 << pos)); }
void CI(long long &_x) { scanf("%I64d", &_x); }
void CO(long long &_x) { cout << _x; }
template <typename T>
void getarray(T a[], long long n) {
  for (long long i = 0; i < n; i++) cin >> a[i];
}
template <typename T>
void prLLIarray(T a[], long long n) {
  for (long long i = 0; i < n - 1; i++) cout << a[i] << " ";
  cout << a[n - 1] << endl;
}
const double EPS = 1e-9;
const long long INF = 0x7f7f7f7f;
long long dr8[8] = {1, -1, 0, 0, 1, -1, -1, 1};
long long dc8[8] = {0, 0, -1, 1, 1, 1, -1, -1};
long long dr4[4] = {0, 0, 1, -1};
long long dc4[4] = {-1, 1, 0, 0};
long long kn8r[8] = {1, 2, 2, 1, -1, -2, -2, -1};
long long kn8c[8] = {2, 1, -1, -2, -2, -1, 1, 2};
double t1, t2, x1, x2, t0, ans = 1 << 30, a, b;
double func(double y1, double y2) {
  double temp = (t1 * y1) + (t2 * y2);
  temp = temp / (y1 + y2);
  return temp;
}
int main() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  double dd = 1ll << 30;
  long long a = 0, b = 0;
  for (int i = 0; i <= x1; i++) {
    int low = 0, hi = x2;
    while (low < hi) {
      int mid = (low + hi) / 2;
      double val = func(i, mid);
      if (val >= t0)
        hi = mid;
      else
        low = mid + 1;
    }
    double temp = func(i, low);
    double dif = temp - t0;
    if (dif >= 0) {
      if (dif < dd) {
        dd = dif;
        a = i, b = low;
      } else if (dif == dd) {
        if (i + low > a + b) a = i, b = low;
      }
    }
  }
  if (a == 0) {
    b = x2;
  } else if (b == 0) {
    a = x1;
  }
  if (t1 == t2) {
    a = x1, b = x2;
  }
  cout << a << " " << b << "\n";
}
