#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
int t1, t2, x1, x2, t0;
int ansx1, ansx2;
double anst;
void getans(int cur1) {
  int l = 0, r = x2, mid;
  if (cur1 == 0) l = 1;
  int resx2 = 0;
  double vsp = (t1 * 1LL * cur1 + t2 * 1LL * x2) / double(cur1 + x2);
  if (vsp < t0 - eps) return;
  while (l <= r) {
    mid = (l + r) / 2;
    vsp = (t1 * 1LL * cur1 + t2 * 1LL * mid) / double(cur1 + mid);
    if (vsp < t0 - eps) {
      l = mid + 1;
    } else {
      resx2 = mid;
      r = mid - 1;
    }
  }
  vsp = (t1 * 1LL * cur1 + t2 * 1LL * resx2) / double(cur1 + resx2);
  if (anst - vsp > eps) {
    anst = vsp;
    ansx1 = cur1;
    ansx2 = resx2;
  }
  if (abs(anst - vsp) < eps) {
    if (ansx1 + ansx2 < cur1 + resx2) {
      ansx1 = cur1;
      ansx2 = resx2;
    }
  }
}
int main() {
  int i;
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  if (t1 == t2) {
    printf("%d %d", x1, x2);
    return 0;
  }
  ansx1 = 0;
  ansx2 = x2;
  anst = t2;
  for (i = 0; i <= x1; i++) {
    getans(i);
  }
  printf("%d %d", ansx1, ansx2);
  return 0;
}
