#include <bits/stdc++.h>
using namespace std;
long long t1, t2, x1, x2, t0;
const double eps = 1e-9;
inline bool eq(double a, double b) { return abs(a - b) < eps; }
inline bool ls(double a, double b) { return a <= b - eps; }
inline bool gt(double a, double b) { return a >= b + eps; }
inline bool le(double a, double b) { return a < b + eps; }
inline bool ge(double a, double b) { return a > b - eps; }
inline bool zr(double lhs) { return fabs(lhs) < eps; }
inline bool nz(double lhs) { return fabs(lhs) >= eps; }
inline bool ps(double lhs) { return lhs >= eps; }
inline bool nn(double lhs) { return lhs >= -eps; }
inline bool ng(double lhs) { return lhs < -eps; }
inline bool np(double lhs) { return lhs < eps; }
bool check(long long y1, long long y2) {
  return t1 * y1 + t2 * y2 >= t0 * (y1 + y2);
}
double cal(long long y1, long long y2) {
  return double(t1 * y1 + t2 * y2) / (y1 + y2);
}
int main() {
  scanf("%lld%lld%lld%lld%lld", &t1, &t2, &x1, &x2, &t0);
  double ans = DBL_MAX;
  long long ay1, ay2;
  for (long long y1 = 0; y1 <= x1; y1++) {
    long long tmp1 = t2 * y1 - t1 * y1;
    if (tmp1 == 0) {
      bool ok = check(y1, x2);
      if (ok) {
        double tmp2 = cal(y1, x2);
        if (ls(tmp2, ans)) {
          ans = tmp2, ay1 = y1, ay2 = x2;
        } else if (eq(tmp2, ans)) {
          if (y1 + x2 > ay1 + ay2) {
            ay1 = y1, ay2 = x2;
          }
        }
      }
    } else if (tmp1 > 0) {
      long long l = 0, r = x2;
      while (l < r) {
        long long mid = (l + r) / 2;
        bool ok = check(y1, mid);
        if (ok)
          r = mid;
        else
          l = mid + 1;
      }
      if (check(y1, l)) {
        double tmp2 = cal(y1, l);
        if (ls(tmp2, ans)) {
          ans = tmp2, ay1 = y1, ay2 = l;
        } else if (eq(tmp2, ans)) {
          if (y1 + l > ay1 + ay2) {
            ay1 = y1, ay2 = l;
          }
        }
      }
    } else {
      long long l = 0, r = x2;
      while (l < r) {
        long long mid = (l + r + 1) / 2;
        bool ok = check(y1, mid);
        if (ok)
          l = mid;
        else
          r = mid - 1;
      }
      if (check(y1, l)) {
        double tmp2 = cal(y1, l);
        if (ls(tmp2, ans)) {
          ans = tmp2, ay1 = y1, ay2 = l;
        } else if (eq(tmp2, ans)) {
          if (y1 + l > ay1 + ay2) {
            ay1 = y1, ay2 = l;
          }
        }
      }
    }
  }
  printf("%lld %lld\n", ay1, ay2);
  return 0;
}
