#include <bits/stdc++.h>   using namespace std;   double t0;   double error(long long t1, long long t2, long long x1, long long x2) {     double c = (t1 * x1 + t2 * x2) / double(x1 + x2);     if (c >= t0) return c - t0;     return 1e9;   }   int main() {     long long t1, t2, x1, x2;     cin >> t1 >> t2 >> x1 >> x2 >> t0;     double ER = 1e8;     long long a1 = -1, a2 = -1;     for (int y1 = 0; y1 <= x1; y1++) {       long long mi = (t0 != t2) ? (t1 * y1 - t0 * y1) / (t0 - t2) : 1000000000;       for (long long y2 = min(max(mi - 10, 0LL), x2);            y2 <= max(min(mi + 10, x2), 0LL); ++y2) {         if (y1 == 0 && y2 == 0) continue;         double calc = error(t1, t2, y1, y2);         if (ER > calc) {           ER = calc;           a1 = y1;           a2 = y2;         } else if (ER == calc) {           if (a1 + a2 < y1 + y2) a1 = y1, a2 = y2;         }       }     }     cout << a1 <<     << a2 << endl;     return 0;   }   