#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
template <typename T>
bool mmax(T &m, const T q) {
  if (m < q) {
    m = q;
    return true;
  } else
    return false;
}
template <typename T>
bool mmin(T &m, const T q) {
  if (m > q) {
    m = q;
    return true;
  } else
    return false;
}
void __print(long long first) { cerr << first; }
void __print(long first) { cerr << first; }
void __print(unsigned first) { cerr << first; }
void __print(unsigned long first) { cerr << first; }
void __print(unsigned long long first) { cerr << first; }
void __print(float first) { cerr << first; }
void __print(double first) { cerr << first; }
void __print(long double first) { cerr << first; }
void __print(char first) { cerr << '\'' << first << '\''; }
void __print(const char *first) { cerr << '\"' << first << '\"'; }
void __print(const string &first) { cerr << '\"' << first << '\"'; }
void __print(bool first) { cerr << (first ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &first) {
  cerr << '{';
  __print(first.first);
  cerr << ',';
  __print(first.second);
  cerr << '}';
}
template <typename T>
void __print(const T &first) {
  long long f = 0;
  cerr << '{';
  for (auto &i : first) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
long long dx[] = {0, 0, 1, -1};
long long dy[] = {1, -1, 0, 0};
const long double eps = 1e-9;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t1, t2, x1, x2, t0;
  cin >> t1 >> t2 >> x1 >> x2 >> t0;
  if (t1 == t2) {
    cout << x1 << " " << x2;
    return 0;
  }
  if (t1 == t0) {
    cout << x1 << " " << 0;
    return 0;
  }
  if (t2 == t0) {
    cout << 0 << " " << x2;
    return 0;
  }
  long double ans = (long double)1e9;
  long long b1 = -1, b2 = -1;
  for (long long y2 = 0; y2 <= x2; y2++) {
    long long y1 = 0;
    long double cur = (t1 * y1 + t2 * y2) * 1.0 / (y1 + y2);
    if (cur < t0) continue;
    if (cur < ans || (abs(cur - ans) < eps and y1 + y2 > b1 + b2)) {
      ans = cur;
      b1 = y1;
      b2 = y2;
    }
  }
  for (long long y1 = 1; y1 <= x1; y1++) {
    long long y2 = (ceil)(1.0 * y1 * (t1 - t0) / (t0 - t2));
    y2 = min(x2, y2);
    long double cur = (t1 * y1 + t2 * y2) * 1.0 / (y1 + y2);
    if (cur < t0) continue;
    if (cur < ans || (abs(cur - ans) < eps and y1 + y2 > b1 + b2)) {
      ans = cur;
      b1 = y1;
      b2 = y2;
    }
  }
  cout << b1 << " " << b2;
  return 0;
}
