#include <bits/stdc++.h>
double a, t1, t2, x1, x2, t, ma = 999999999;
double l, r, j;
int x, y;
using namespace std;
double lol(double a) { return (double)int(round(a)); }
int main() {
  scanf("%lf%lf%lf%lf%lf", &t1, &t2, &x1, &x2, &t);
  for (double i = 0; i <= x1; i++) {
    l = 0.0;
    r = x2;
    j = r;
    if (i + j) {
      a = ((t1 * i) + (t2 * j)) / (i + j);
      if (a >= t && a - t < ma - t)
        ma = a, x = (int)round(i), y = (int)round(j);
      if (a >= t && a == ma)
        if (i + j > double(x + y)) x = int(i), y = (int)round(j);
    }
    for (; r > l + 1; j = (l + r) / 2)
      if (i + j) {
        a = ((t1 * i) + (t2 * j)) / (i + j);
        if (a < t)
          l = j;
        else
          r = j;
      }
    for (double s = lol(l - 1); s <= lol(r + 1); s++)
      if (i + s && s <= x2 && l > -1) {
        a = ((t1 * i) + (t2 * s)) / (i + s);
        if (a >= t && a - t < ma - t)
          ma = a, x = (int)round(i), y = (int)round(s);
        if (a >= t && a == ma)
          if (i + s > double(x + y)) x = int(i), y = (int)round(s);
      }
  }
  printf("%d %d\n", x, y);
  fclose(stdin);
  fclose(stdout);
  return 0;
}
