#include <bits/stdc++.h>
using namespace std;
const double pi = 2.0 * acos(0.0);
const double eps = 1.0e-9;
const int dr[] = {-1, 0, 1, 0}, dc[] = {0, 1, 0, -1};
const int dr6[] = {1, 1, 0, -1, -1, 0}, dc6[] = {0, 1, 1, 0, -1, -1};
const int dr8[] = {-1, -1, 0, 1, 1, 1, 0, -1},
          dc8[] = {0, 1, 1, 1, 0, -1, -1, -1};
int main(void) {
  int kase = 1000000000;
  for (int ks = 1, t1, t2, x1, x2, t0;
       ks <= kase && cin >> t1 >> t2 >> x1 >> x2 >> t0; ++ks) {
    if (t1 == t2)
      cout << x1 << " " << x2 << endl;
    else if (t0 == t2)
      cout << 0 << " " << x2 << endl;
    else {
      long long p = t2 - t0, q = 1, s = x2, v1 = 0, v2 = x2;
      for (int y1 = 0; y1 <= x1; ++y1) {
        long long y2 = ((long long)(t0 - t1) * y1 + (t2 - t0) - 1) / (t2 - t0);
        if (y2 > x2) continue;
        long long p1 = (long long)t1 * y1 + t2 * y2, q1 = y1 + y2;
        p1 -= q1 * t0;
        if (p1 * q < p * q1 || (p1 * q == p * q1 && q1 > s))
          p = p1, q = q1, s = q1, v1 = y1, v2 = y2;
      }
      cout << v1 << " " << v2 << endl;
    }
  }
  return 0;
}
