#include <bits/stdc++.h>
int main() {
  int t0, t1, t2, x1, x2, d0, d1, ay1 = 0, ay2 = 0;
  unsigned long long bestf = 1000000000, bestd = 1;
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  d0 = t1 - t0, d1 = t2 - t0;
  if (d0 == 0 && d1 == 0) {
    printf("%d %d\n", x1, x2);
    return 0;
  } else if (d0 == 0) {
    printf("%d 0\n", x1);
    return 0;
  } else if (d1 == 0) {
    printf("0 %d\n", x2);
    return 0;
  }
  ay2 = x2, bestf = (unsigned long long)x2 * t2, bestd = x2;
  for (int i = 1; i <= x1; i++) {
    unsigned long long v = (unsigned long long)d0 * i, vt = (-v + d1 - 1) / d1;
    if (vt > x2) continue;
    unsigned long long f = ((unsigned long long)t1 * i + t2 * vt), d = (i + vt);
    if (f * bestd < bestf * d) {
      bestf = f, bestd = d;
      ay1 = i, ay2 = vt;
    } else if (f * bestd == bestf * d && (i + vt) > (ay1 + ay2))
      ay1 = i, ay2 = vt;
  }
  printf("%d %d\n", ay1, ay2);
  getchar();
  getchar();
  return 0;
}
