#include <bits/stdc++.h>
double t1, t2, t0;
int dblcmp(double n) { return n < -1e-12 ? -1 : n > 1e-12; }
double fun(int y1, int y2) { return (t1 * y1 + t2 * y2) / (y1 + y2); }
int main() {
  int x1, x2;
  while (scanf("%lf %lf %d %d %lf", &t1, &t2, &x1, &x2, &t0) != EOF) {
    if (dblcmp(t1 - t2) == 0) {
      printf("%d %d\n", x1, x2);
    } else if (dblcmp(t1 - t0) == 0) {
      printf("%d %d\n", x1, 0);
    } else if (dblcmp(t2 - t0) == 0) {
      printf("%d %d\n", 0, x2);
    } else {
      int y1 = -1;
      int y2 = -1;
      double delta = 1e30;
      for (int j = 1; j <= x2; j++) {
        int i = 0;
        double delta_tmp = fun(i, j) - t0;
        if (dblcmp(delta_tmp) < 0) {
          continue;
        } else if (dblcmp(delta_tmp - delta) < 0) {
          delta = delta_tmp;
          y1 = i;
          y2 = j;
        } else if (dblcmp(delta_tmp - delta) == 0) {
          if (i + j > y1 + y2) {
            y1 = i;
            y2 = j;
          }
        }
      }
      for (int i = 1; i <= x1; i++) {
        int j = (int)((t0 - t1) / (t2 - t0) * i) - 1;
        if (j < 0) {
          j = 0;
        }
        while (j <= x2 && dblcmp(fun(i, j) - t0) < 0) {
          j++;
        }
        if (j > x2) {
          continue;
        }
        double delta_tmp = fun(i, j) - t0;
        if (dblcmp(delta_tmp - delta) < 0) {
          delta = delta_tmp;
          y1 = i;
          y2 = j;
        } else if (dblcmp(delta_tmp - delta) == 0) {
          if (i + j > y1 + y2) {
            y1 = i;
            y2 = j;
          }
        }
      }
      printf("%d %d\n", y1, y2);
    }
  }
  return 0;
}
