#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
double t1, t2, t0, l, ans = 1e18, t;
int x1, x2, l1, l2;
int main() {
  scanf("%lf%lf%d%d%lf", &t1, &t2, &x1, &x2, &t0);
  if (t0 == t2) {
    if (t0 == t1)
      printf("%d %d\n", x1, x2);
    else
      printf("%d %d\n", 0, x2);
    return 0;
  }
  for (int i = 0; i <= x1; i++) {
    l = (double)i * (t0 - t1) / (t2 - t0);
    long long k = (int)ceil(l);
    if (i == 0 && k == 0) k = x2;
    if (k <= x2) {
      t = (t1 * (double)i + t2 * (double)k) / (double)(i + k);
      if (ans > t + eps || (abs(ans - t) <= eps && k + i > l1 + l2)) {
        ans = t;
        l1 = i;
        l2 = k;
      }
    }
  }
  printf("%d %d\n", l1, l2);
  return 0;
}
