#include <bits/stdc++.h>
using namespace std;
int main() {
  int t1, t2, x1, x2, t0;
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  if (t0 == t2) {
    if (t1 == t2)
      printf("%d %d\n", x1, x2);
    else
      printf("%d %d\n", 0, x2);
    return 0;
  }
  int x = -1, y = -1;
  for (int i = 0; i <= x1; i++) {
    int tmp = (int)ceil(min((double)x2 + 1, (double)(t0 - t1) * i / (t2 - t0)));
    if (tmp > x2) continue;
    if (t1 == t2 || i == 0) tmp = x2;
    if (x == -1 && y == -1) {
      x = i;
      y = tmp;
      continue;
    }
    long long d = ((long long)t1 * x + (long long)t2 * y) * (i + tmp);
    d -= ((long long)t1 * i + (long long)t2 * tmp) * (x + y);
    if (d > 0 || d == 0 && i + tmp > x + y) {
      x = i;
      y = tmp;
    }
  }
  printf("%d %d\n", x, y);
  return 0;
}
