#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.1415926535897932384626433832795;
const long double EPS = 1e-11;
long double t1, t2, x1, x2, t0;
long double temp(long double y1, long double y2) {
  return (t1 * y1 + t2 * y2) / (y1 + y2);
}
int main() {
  cout << setiosflags(ios::fixed) << setprecision(10);
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  long double ans = 999999999, t;
  int y1 = 0, y2 = 0;
  int j = 0;
  for (int i = 1; i <= x1; i++) {
    while ((temp(i, j) < t0) && (j < x2)) j++;
    while ((temp(i, j + 1) == t0) && (j < x2)) j++;
    t = temp(i, j);
    if ((t >= t0) && (t - t0) < (ans - t0)) {
      ans = t;
      y1 = i;
      y2 = j;
    }
    if ((t == ans) && (i + j > y1 + y2)) {
      y1 = i;
      y2 = j;
    }
  }
  int i = 0;
  for (int j = 1; j <= x2; j++) {
    while ((temp(i, j) < t0) && (i < x1)) i++;
    while ((temp(i + 1, j) == t0) && (i < x1)) i++;
    t = temp(i, j);
    if ((t >= t0) && ((t - t0) < (ans - t0))) {
      ans = t;
      y1 = i;
      y2 = j;
    }
    if ((t == ans) && (i + j > y1 + y2)) {
      y1 = i;
      y2 = j;
    }
  }
  cout << y1 << " " << y2;
  return 0;
}
