#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0;
  long long tmp, tmp2;
  long long r1, r2;
  double massimo = 100000005;
  long long ptr = 0;
  double t;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  tmp = t0 - t1;
  tmp2 = t2 - t0;
  t = t0;
  if (tmp == tmp2 && tmp == 0) {
    cout << x1 << ' ' << x2;
    getchar();
    getchar();
    return 0;
  }
  if (tmp == 0) {
    printf("%ld 0", x1);
    getchar();
    getchar();
    return 0;
  }
  if (tmp2 == 0) {
    printf("0 %ld", x2);
    getchar();
    getchar();
    return 0;
  }
  for (int i = x2; i > 0; i--) {
    r2 = i;
    r1 = r2 * tmp2 / tmp;
    if (r1 > x1) r1 = x1;
    t = 1.0 * (t1 * r1 + t2 * r2) / (r1 + r2);
    if (r1 <= x1) {
      if (massimo > (t - t0) && (t - t0) >= 0) {
        massimo = (t - t0);
        ptr = i;
      }
    }
  }
  r2 = ptr;
  r1 = r2 * tmp2 / tmp;
  while (r1 > x1) r1--;
  cout << r1 << ' ' << r2;
  getchar();
  getchar();
  return 0;
}
