#include <bits/stdc++.h>
using namespace std;
double t1, t2, x1, x2, t0;
double f(double y1, double y2) { return (t1 * y1 + t2 * y2) / (y1 + y2); }
int main() {
  scanf("%lf%lf%lf%lf%lf", &t1, &t2, &x1, &x2, &t0);
  double mi = 1e18;
  int ansy1 = 0, ansy2 = 0;
  if (t1 == t0 || t2 == t0) {
    if (t1 == t0) ansy1 = x1;
    if (t2 == t0) ansy2 = x2;
    printf("%d %d\n", ansy1, ansy2);
    return 0;
  }
  for (int i = 1; i <= (int)x2; i++) {
    int y1 = i * (t0 - t2) / ((t1 - t0));
    y1 = min(y1, (int)x1);
    if (f(y1, i) >= t0) {
      if (fabs(f(y1, i) - t0 - mi) < 1e-12) {
        if (y1 + i > ansy1 + ansy2) {
          ansy1 = y1;
          ansy2 = i;
        }
      } else if (f(y1, i) - t0 < mi) {
        ansy1 = y1;
        ansy2 = i;
        mi = f(y1, i) - t0;
      }
    }
  }
  printf("%d %d\n", ansy1, ansy2);
  return 0;
}
