ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules

1885. Passenger Comfort

Time limit: 1.0 second
Memory limit: 64 MB
Marketing managers of the company Oceanic Airlines started a new advertising campaign. Its aim was to emphasize the comfort of the passengers on board. However, when the board of directors watched the first commercial shot for the campaign, some questions appeared. The commercial ended with the catchy slogan “Oceanic Airlines. Blocked ears. Choose one of the two.” But the chief executive remembered quite well how his ears had suffered during his last business trip to Bali with Oceanic Airlines…
According to the instructions, the airplane must climb to an altitude of h meters during the first t seconds of the flight and keep that altitude during the whole flight. The climbing rate must not be greater than v meters per second. The plane must not descend before the planned altitude is attained.
The marketing managers wanted to know if their advertising was truthful. They found out that ears were blocked only when a plane was ascending at a rate of more than x meters per second. Help the managers calculate the minimum and maximum amount of time during which passengers may have their ears blocked if the pilot adheres to the instructions. You may assume that the plane can change its speed instantly.

Input

The only line contains the integers h, t, v, and x (5 000 ≤ h ≤ 12 000; 50 ≤ t ≤ 1 200; 1 ≤ x < v ≤ 100; ht · v).

Output

Output two real numbers, which are the minimum and maximum numbers of seconds during which passengers may have their ears blocked. The absolute or relative error of each number should not exceed 10−6.

Sample

inputoutput
10000 500 50 10
125.0 500.0
Problem Author: Denis Dublennykh
Problem Source: NEERC 2011, Eastern subregional contest