#include <bits/stdc++.h>
int t1, t2, x1, x2, t0;
long double dif(long double a, int b) { return a > b ? a - b : b - a; }
int main() {
  scanf("%d %d %d %d %d", &t1, &t2, &x1, &x2, &t0);
  if (t0 == t2 && t1 == t2) {
    printf("%d %d\n", x1, x2);
    return 0;
  }
  if (t0 == t1) {
    printf("%d 0\n", x1);
    return 0;
  }
  if (t0 == t2) {
    printf("0 %d\n", x2);
    return 0;
  }
  long double tt = t1, t;
  long long aa = 0, bb = x1, a, b;
  if (tt < t0) aa = 1, bb = 0, tt = t2;
  for (a = 1; a <= x2; ++a) {
    long long s = (a * (t2 - t1)) / (double)(t0 - t1);
    b = s - a;
    if (b < 0)
      b = 0;
    else if (b > x1)
      b = x1;
    t = (long double)((long long)b * t1 + a * t2) / (b + a);
    if (t >= t0)
      if (dif(t, t0) < dif(tt, t0) ||
          (dif(t, t0) == dif(tt, t0) && (a + b) > (aa + bb)))
        aa = a, bb = b, tt = t;
  }
  printf("%I64d %I64d\n", bb, aa);
  return 0;
}
