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