Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link https://codeforces.com/10years.
×

Package for this problem was not updated by the problem writer or Codeforces administration after we’ve upgraded the judging servers. To adjust the time limit constraint, solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then value 800 ms will be displayed and used to determine the verdict.

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

A. Hot Bath

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputBob is about to take a hot bath.

There are two taps to fill the bath: a hot water tap and a cold water tap. The cold water's temperature is *t*_{1}, and the hot water's temperature is *t*_{2}. The cold water tap can transmit any integer number of water units per second from 0 to *x*_{1}, inclusive. Similarly, the hot water tap can transmit from 0 to *x*_{2} water units per second.

If *y*_{1} water units per second flow through the first tap and *y*_{2} water units per second flow through the second tap, then the resulting bath water temperature will be:

Bob wants to open both taps so that the bath water temperature was not less than *t*_{0}. However, the temperature should be as close as possible to this value. If there are several optimal variants, Bob chooses the one that lets fill the bath in the quickest way possible.

Determine how much each tap should be opened so that Bob was pleased with the result in the end.

Input

You are given five integers *t*_{1}, *t*_{2}, *x*_{1}, *x*_{2} and *t*_{0} (1 ≤ *t*_{1} ≤ *t*_{0} ≤ *t*_{2} ≤ 10^{6}, 1 ≤ *x*_{1}, *x*_{2} ≤ 10^{6}).

Output

Print two space-separated integers *y*_{1} and *y*_{2} (0 ≤ *y*_{1} ≤ *x*_{1}, 0 ≤ *y*_{2} ≤ *x*_{2}).

Examples

Input

10 70 100 100 25

Output

99 33

Input

300 500 1000 1000 300

Output

1000 0

Input

143 456 110 117 273

Output

76 54

Note

In the second sample the hot water tap shouldn't be opened, but the cold water tap should be opened at full capacity in order to fill the bath in the quickest way possible.

Codeforces (c) Copyright 2010-2020 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Feb/18/2020 20:43:50 (h1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|