#include <bits/stdc++.h>
using namespace std;
int t1, t2, x1, mid, x2, t0, thot, tcold, tem, l, r;
double t, tans;
int main() {
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  tans = 99999999;
  for (int i = 0; i <= x1; i++) {
    l = 0;
    r = x2;
    tem = 0;
    while (l <= r) {
      mid = (l + r) / 2;
      t = (double(t1) * double(i) + double(t2) * double(mid)) /
          (double(i) + double(mid));
      if (t >= t0)
        r = mid - 1, tem = mid;
      else
        l = mid + 1;
    }
    t = (double(t1) * double(i) + double(t2) * double(x2)) /
        (double(i) + double(x2));
    if (t < tans && t >= t0) {
      tans = t;
      thot = x2;
      tcold = i;
    }
    if (t == tans && t >= t0)
      if (thot + tcold < i + x2) thot = x2, tcold = i;
    t = (double(t1) * double(i)) / double(i);
    if (t < tans && t >= t0) {
      tans = t;
      thot = 0;
      tcold = i;
    }
    if (t == tans && t >= t0)
      if (thot + tcold < i + tem) thot = 0, tcold = i;
    t = (double(t1) * double(i) + double(t2) * double(tem)) /
        (double(i) + double(tem));
    if (t < tans && t >= t0) {
      tans = t;
      thot = tem;
      tcold = i;
    }
    if (t == tans && t >= t0)
      if (thot + tcold < i + tem) thot = tem, tcold = i;
  }
  printf("%d %d", tcold, thot);
  return 0;
}
