Trade#2428

Trade

1 second
64 megabytes
Medium

In a certain kingdom, a merchant traded a particular good. He lived and prospered until the king decided to impose a tax on each transaction, set at per--cent of the transaction amount (i.e., of the transaction amount). If the tax is not an integer, it must be rounded to the nearest integer. If there are two nearest integers, the larger one is chosen.

The merchant has units of goods, each priced at . Any number of customers may come, each able to buy any number of goods. The merchant trades until he has sold all his goods.

As the goods have not yet gone on sale, the merchant wants to estimate the minimum and maximum amounts he can receive for his goods after taxes are deducted, and asks for your help.

Input

The input consists of a single line containing four integers: , , , and (0 \leq N \leq 10^9, 0 \leq c \leq 10^9, 0 \leq p < q \leq 10^9).

Output

Output a single line with two integers: the minimum and maximum amount the merchant can receive for his goods.

Examples

Example 1

Loading
Loading