#include <bits/stdc++.h>
using namespace std;
template <class A, class B>
ostream& operator<<(ostream& o, pair<A, B>& p) {
  return o << "(" << p.first << ", " << p.second << ")";
}
template <class A, class B>
istream& operator>>(istream& i, pair<A, B>& p) {
  return i >> p.first >> p.second;
}
long long t1, t2, x1, x2, t0;
int main() {
  ;
  while (cin >> t1 >> t2 >> x1 >> x2 >> t0) {
    double mindis = 1e20;
    long long maxy1 = 0, maxy2 = 0;
    for (__typeof((x1 + 1) - 1) y1 = (0); y1 <= ((x1 + 1) - 1); y1++) {
      {
        long long y2;
        if (t0 == t2)
          y2 = x2;
        else
          y2 = (y1 * (t1 - t0)) / (t0 - t2);
        if (y2 < 0)
          y2 = 0;
        else if (y2 > x2)
          y2 = x2;
        double nt0 = (double(y1) * t1 + double(y2) * t2) / double(y1 + y2);
        if (((((nt0) - (t0)) < 0 ? (-((nt0) - (t0))) : ((nt0) - (t0))) <=
             1e-9)) {
          if (mindis != 0) {
            maxy1 = y1, maxy2 = y2;
          } else if (maxy1 + maxy2 < y1 + y2) {
            maxy1 = y1, maxy2 = y2;
          }
          mindis = 0;
        } else if (nt0 < t0)
          goto nexty1;
        else if (((((nt0 - t0) - (mindis)) < 0
                       ? (-((nt0 - t0) - (mindis)))
                       : ((nt0 - t0) - (mindis))) <= 1e-9)) {
          if (maxy1 + maxy2 < y1 + y2) {
            maxy1 = y1, maxy2 = y2;
          }
        } else if (nt0 - t0 < mindis) {
          mindis = nt0 - t0;
          maxy1 = y1, maxy2 = y2;
        }
      }
    nexty1 : {
      long long y2;
      if (t0 == t2)
        y2 = x2;
      else
        y2 = (y1 * (t1 - t0)) / (t0 - t2) + 1;
      if (y2 < 0)
        y2 = 0;
      else if (y2 > x2)
        y2 = x2;
      double nt0 = (double(y1) * t1 + double(y2) * t2) / double(y1 + y2);
      if (((((nt0) - (t0)) < 0 ? (-((nt0) - (t0))) : ((nt0) - (t0))) <= 1e-9)) {
        if (mindis != 0) {
          maxy1 = y1, maxy2 = y2;
        } else if (maxy1 + maxy2 < y1 + y2) {
          maxy1 = y1, maxy2 = y2;
        }
        mindis = 0;
      } else if (nt0 < t0)
        continue;
      else if (((((nt0 - t0) - (mindis)) < 0
                     ? (-((nt0 - t0) - (mindis)))
                     : ((nt0 - t0) - (mindis))) <= 1e-9)) {
        if (maxy1 + maxy2 < y1 + y2) {
          maxy1 = y1, maxy2 = y2;
        }
      } else if (nt0 - t0 < mindis) {
        mindis = nt0 - t0;
        maxy1 = y1, maxy2 = y2;
      }
    }
    }
    for (__typeof((x2 + 1) - 1) y2 = (0); y2 <= ((x2 + 1) - 1); y2++) {
      {
        long long y1;
        if (t0 == t1)
          y1 = x1;
        else
          y1 = (y2 * (t2 - t0)) / (t0 - t1);
        if (y1 < 0)
          y1 = 0;
        else if (y1 > x1)
          y1 = x1;
        double nt0 = (double(y1) * t1 + double(y2) * t2) / double(y1 + y2);
        if (((((nt0) - (t0)) < 0 ? (-((nt0) - (t0))) : ((nt0) - (t0))) <=
             1e-9)) {
          if (mindis != 0) {
            maxy1 = y1, maxy2 = y2;
          } else if (maxy1 + maxy2 < y1 + y2) {
            maxy1 = y1, maxy2 = y2;
          }
          mindis = 0;
        } else if (nt0 < t0)
          goto nexty2;
        else if (((((nt0 - t0) - (mindis)) < 0
                       ? (-((nt0 - t0) - (mindis)))
                       : ((nt0 - t0) - (mindis))) <= 1e-9)) {
          if (maxy1 + maxy2 < y1 + y2) {
            maxy1 = y1, maxy2 = y2;
          }
        } else if (nt0 - t0 < mindis) {
          mindis = nt0 - t0;
          maxy1 = y1, maxy2 = y2;
        }
      }
    nexty2 : {
      long long y1;
      if (t0 == t1)
        y1 = x1;
      else
        y1 = (y2 * (t2 - t0)) / (t0 - t1) + 1;
      if (y1 < 0)
        y1 = 0;
      else if (y1 > x1)
        y1 = x1;
      double nt0 = (double(y1) * t1 + double(y2) * t2) / double(y1 + y2);
      if (((((nt0) - (t0)) < 0 ? (-((nt0) - (t0))) : ((nt0) - (t0))) <= 1e-9)) {
        if (mindis != 0) {
          maxy1 = y1, maxy2 = y2;
        } else if (maxy1 + maxy2 < y1 + y2) {
          maxy1 = y1, maxy2 = y2;
        }
        mindis = 0;
      } else if (nt0 < t0)
        continue;
      else if (((((nt0 - t0) - (mindis)) < 0
                     ? (-((nt0 - t0) - (mindis)))
                     : ((nt0 - t0) - (mindis))) <= 1e-9)) {
        if (maxy1 + maxy2 < y1 + y2) {
          maxy1 = y1, maxy2 = y2;
        }
      } else if (nt0 - t0 < mindis) {
        mindis = nt0 - t0;
        maxy1 = y1, maxy2 = y2;
      }
    }
    }
    cout << maxy1 << ' ' << maxy2 << endl;
  }
  return 0;
}
