#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t1, t2, x1, x2, t0, ans2 = 0, ans3 = 0;
  double ans = 999999999.0;
  scanf("%I64d%I64d%I64d%I64d%I64d", &t1, &t2, &x1, &x2, &t0);
  if (t1 == t0 || t2 == t0) {
    long long cnt = 0, i = 0;
    if (t1 == t0) {
      cnt = x1;
    }
    if (t2 == t0) {
      i = x2;
    }
    printf("%I64d %I64d\n", cnt, i);
    return 0;
  }
  for (int i = 0; i <= x1; i++) {
    long long cnt = i == 0 ? x2
                           : (((t0 - t1) * i) % (t2 - t0) == 0
                                  ? ((t0 - t1) * i) / (t2 - t0)
                                  : ((t0 - t1) * i) / (t2 - t0) + 1);
    if (cnt > x2) continue;
    if ((t1 * i + t2 * cnt) / (double)(cnt + i) < ans) {
      ans = (t1 * i + t2 * cnt) / (double)(cnt + i);
      ans2 = i;
      ans3 = cnt;
    } else if (fabs((t1 * i + t2 * cnt) / (double)(cnt + i) - ans) <= 1e-7 &&
               i + cnt > ans2 + ans3) {
      ans2 = i;
      ans3 = cnt;
    }
  }
  printf("%I64d %I64d\n", ans2, ans3);
}
