#include <bits/stdc++.h>
int t0, t1, t2;
double comp(int y1, int y2) {
  double left = t0;
  double right =
      (double)((double)t1 * y1 + (double)t2 * y2) / (double)(y1 + y2);
  return left - right;
}
int main(void) {
  int x1, x2;
  double temp;
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  int i, j;
  double state;
  temp = 9999999.0000;
  int cold, hot;
  for (i = x1, j = x2; i >= 0, j >= 0;) {
    state = comp(i, j);
    if (state < 0.0000001 && state > -0.0000001) {
      cold = i;
      hot = j;
      break;
    } else if (state > 0.0000001) {
      i--;
    } else {
      if (-state < temp) {
        cold = i;
        hot = j;
        temp = -state;
      }
      j--;
    }
  }
  printf("%d %d\n", cold, hot);
  return 0;
}
