#include <bits/stdc++.h>
using namespace std;
long long t1, t2, t0, x1, x2;
long long gcd(long long a, long long b) {
  while (b) {
    long long tmp = a % b;
    a = b;
    b = tmp;
  }
  return a;
}
int main() {
  scanf("%I64d %I64d %I64d %I64d %I64d", &t1, &t2, &x1, &x2, &t0);
  if (t1 == t2) {
    printf("%I64d %I64d\n", x1, x2);
    return 0;
  }
  if (t1 == t0) {
    printf("%I64d %I64d\n", x1, 0LL);
    return 0;
  }
  if (t2 == t0) {
    printf("%I64d %I64d\n", 0LL, x2);
    return 0;
  }
  long long ans1 = 0, ans2 = x2;
  for (long long y1 = 1; y1 <= x1; y1++) {
    long long y2 = y1 * (t0 - t1) / (t2 - t0);
    while (y2 * (t2 - t0) < y1 * (t0 - t1) || (y1 + y2 == 0)) y2++;
    if (t1 * y1 + t2 * y2 < t0 * (y1 + y2)) continue;
    if (y2 <= x2) {
      if (0 == ans1 && 0 == ans2) {
        ans1 = y1, ans2 = y2;
        continue;
      }
      long long a = t1 * y1 + t2 * y2;
      long long as = y1 + y2;
      long long b = t1 * ans1 + t2 * ans2;
      long long bs = ans1 + ans2;
      if (a * bs < b * as) {
        ans1 = y1, ans2 = y2;
      } else if (a * bs == b * as) {
        if (as >= bs) {
          ans1 = y1, ans2 = y2;
        }
      }
    }
  }
  printf("%I64d %I64d\n", ans1, ans2);
  return 0;
}
