#include <bits/stdc++.h>
const int N = 100010;
const int inf = 0x3f3f3f3f;
using namespace std;
int t1, t2, x1, x2, t0;
int main() {
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  long long Y1 = 0, Y2 = x2;
  long long ret1 = inf, ret2 = 1;
  if (t1 == t0 && t2 == t0) {
    printf("%d %d\n", x1, x2);
    return 0;
  } else if (t1 == t0) {
    printf("%d %d\n", x1, 0);
    return 0;
  } else if (t2 == t0) {
    printf("%d %d\n", 0, x2);
    return 0;
  }
  for (long long y1 = 1; y1 <= x1; y1++) {
    long long y2 = (y1 * (t0 - t1) + t2 - t0 - 1) / (t2 - t0);
    if (y2 > x2) continue;
    long long tt = (t1 * Y1 + t2 * Y2 - t0 * (Y1 + Y2)) * (y1 + y2) -
                   (t1 * y1 + t2 * y2 - t0 * (y1 + y2)) * (Y1 + Y2);
    if (tt > 0)
      Y1 = y1, Y2 = y2;
    else if (tt == 0 && Y1 + Y2 < y1 + y2)
      Y1 = y1, Y2 = y2;
  }
  cout << Y1 << " " << Y2 << endl;
  return 0;
}
