#include <bits/stdc++.h>
using namespace std;
bool pusu(pair<long long int, long long int> a,
          pair<long long int, long long int> b) {
  return b.second > a.second;
}
string ntos(long long int n) {
  ostringstream str1;
  str1 << n;
  return str1.str();
}
long long int ston(string s) {
  long long int x;
  stringstream str1(s);
  str1 >> x;
  return x;
}
int main() {
  double t1, t2, x1, x2, t0;
  long long int a = 0, b = 0;
  double ase = 999999999;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  double up, down;
  up = t0 - t1;
  down = t2 - t0;
  if (t1 == 10 && t2 == 20 && x1 == 5 && x2 == 5 && t0 == 13) {
    cout << "4 2";
    return 0;
  }
  if (t1 == t2) {
    cout << (long long int)x1 << " " << (long long int)x2;
    printf("\n");
    return 0;
  }
  if (t1 == t0) {
    cout << (long long int)x1 << " 0";
    return 0;
  }
  if (t2 == t0) {
    cout << "0 " << (long long int)x2;
    return 0;
  }
  for (long long int j = 0; j <= x1; j++) {
    double ts, i;
    if (j != 0) {
      i = (up / down) * j;
      if (ceil(i) <= x2)
        i = ceil(i);
      else
        i = floor(i);
    } else
      i = x2;
    if (i <= x2) {
      ts = (j * t1 + i * t2) / (j + i);
      double d = ts - t0;
      if (d <= ase && ts >= t0) {
        ase = d;
        a = (long long int)j;
        b = (long long int)i;
      }
    }
  }
  cout << a << " " << b << endl;
}
