#include <bits/stdc++.h>
using namespace std;
template <typename T>
void read(T &x) {
  x = 0;
  T f = 1;
  char c = getchar();
  for (; !isdigit(c); c = getchar())
    if (c == '-') f = -1;
  for (; isdigit(c); c = getchar()) x = x * 10 + (c - '0');
  x = x * f;
}
const int N = 1e6 + 5;
const int _Inf = 2e9;
const long long Inf = 1e18;
const double eps = 1e-6;
int main() {
  double t0, t1, t2, x1, x2, y[3];
  scanf("%lf%lf%lf%lf%lf", &t1, &t2, &x1, &x2, &t0);
  double up = 1e14;
  while (x1 >= 0 && x2 >= 0) {
    double t = (t1 * x1 + t2 * x2) / (x1 + x2);
    if (t < t0) {
      x1--;
      continue;
    }
    if (t < up) {
      up = t;
      y[1] = x1;
      y[2] = x2;
    }
    x2--;
  }
  printf("%.0f %.0f\n", y[1], y[2]);
  return 0;
}
