#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-6;
int t0, t1, t2, x1, x2;
int main() {
  scanf("%d%d%d%d%d", &t1, &t2, &x1, &x2, &t0);
  if (t1 == t2 && t1 == t0)
    printf("%d %d\n", x1, x2);
  else if (t1 == t0)
    printf("%d 0\n", x1);
  else if (t2 == t0)
    printf("0 %d\n", x2);
  else {
    double minn = 1e9;
    int ans1, ans2;
    for (int i = 0; i <= x1; i++) {
      int temp = ceil((t0 - t1) / (double)(t2 - t0) * i);
      if (i == 0) {
        temp = x2;
        if (t2 < t0) continue;
      }
      if (temp > x2) continue;
      double ans =
          (i * (double)t1 + temp * (double)t2) / (double)(i + temp) - t0;
      if (minn - ans >= -eps && ans >= 0) minn = ans, ans1 = i, ans2 = temp;
    }
    printf("%d %d\n", ans1, ans2);
  }
  return 0;
}
