#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, x2, t1, t2, t0, i, j;
  long long a, b, x, y;
  double mi, k, u, t, g;
  while (~scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0)) {
    if (t0 == t1 && t2 == t0)
      printf("%d %d\n", x1, x2);
    else if (t0 == t1)
      printf("%d 0\n", x1);
    else if (t2 == t0)
      printf("0 %d\n", x2);
    else {
      k = (double)(t0 - t1) / (t2 - t0);
      x = y = 0;
      mi = 1000000000;
      int c = 0, o = 0;
      for (; x <= x1; x++) {
        y = (long long)(k * x);
        if (y > x2) y = x2;
        for (i = -4; i < 4; i++) {
          a = x;
          b = y + i;
          if (a == 0 && b == 0) continue;
          if (a >= 0 && a <= x1 && b >= 0 && b <= x2) {
            u = (double)(t1 * a + t2 * b) / (a + b) - t0;
            if (u >= 0 || fabs(u - 0) < 0.0000001) {
              if (fabs(u - mi) < 0.00000000001) {
                mi = u;
                if (a + b >= c + o) {
                  c = a;
                  o = b;
                }
              } else if (u < mi) {
                mi = u;
                c = a;
                o = b;
              }
            }
          }
        }
      }
      printf("%d %d\n", c, o);
    }
  }
}
