#include <bits/stdc++.h>
using namespace std;
long long t1, t2, x1, x2, t0, ans1, ans2;
double sum;
int main() {
  scanf("%lld%lld%lld%lld%lld", &t1, &t2, &x1, &x2, &t0);
  sum = 1e18;
  while (x1 >= 0 && x2 >= 0) {
    double t = (double)(t1 * x1 + t2 * x2) / (x1 + x2);
    if (t < t0) {
      x1--;
      continue;
    }
    if (t < sum) {
      sum = t;
      ans1 = x1;
      ans2 = x2;
    }
    x2--;
  }
  printf("%lld %lld\n", ans1, ans2);
  return 0;
}
