#include <bits/stdc++.h>
using namespace std;
const int MAXN = 112;
const int MAXM = MAXN * MAXN;
const double EPS = 1e-8;
const double DINF = 1e30;
const int IINF = ~0U >> 4;
double t1, t2, t0;
double anst;
int Y1, Y2, x2, x1;
void init() {
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  anst = DINF;
  if (t1 == t0 && t2 == t0)
    printf("%d %d\n", x1, x2);
  else if (t1 == t0 && t2 > t0)
    printf("%d %d\n", x1, 0);
  else {
    for (int j = x2; j >= 1; --j) {
      int i = (int)min((double)x1, (floor)(t0 - t2) * j / (t1 - t0));
      double nowt = (t1 * i + t2 * j) / (i + j);
      if (nowt < t0) continue;
      if (nowt + EPS < anst)
        anst = nowt, Y1 = i, Y2 = j;
      else if (nowt == anst && i + j > Y1 + Y2)
        Y1 = i, Y2 = j;
    }
    printf("%d %d\n", Y1, Y2);
  }
}
int main() {
  init();
  return 0;
}
