#include <bits/stdc++.h>
using namespace std;
int t1, t2, x1, x2, t0;
long long Y1, y2, r1, r2;
int main() {
  int i, j, k;
  double t;
  int sum;
  while (scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0) != EOF) {
    if (t1 == t0) {
      if (t2 == t0)
        printf("%d %d\n", x1, x2);
      else
        printf("%d 0\n", x1);
      continue;
    }
    if (t2 == t0) {
      printf("0 %d\n", x2);
      continue;
    }
    t = 1e100;
    for (y2 = 0; y2 <= x2; y2++) {
      Y1 = (t2 - t0) * y2 / (t0 - t1);
      Y1 = min(Y1, (long long)x1);
      double nowt = (t1 * Y1 + t2 * y2) / (Y1 + y2 + 0.0);
      if (nowt < t0) continue;
      if (nowt < t - 1e-8) {
        t = nowt;
        sum = Y1 + y2;
        r1 = Y1;
        r2 = y2;
      } else if (fabs(nowt - t) < 1e-8 && sum < Y1 + y2) {
        sum = Y1 + y2;
        r1 = Y1;
        r2 = y2;
      }
    }
    cout << r1 << " " << r2 << endl;
  }
  return 0;
}
