Problems
221 - Farming
SUBMIT PROBLEM

Farming

Time Limit: 1 sec

 

The Problem

Ramij is a farmer. He wants to plough a farm field on time, so he must plough M hectares a day. For technical reasons he ploughed only P hectares a day, hence he had to plough C more days than he planned and he still has D hectares left.

Now write a program to calculate the area of the farm field and how many days Ramij planned to work initially.

 

 

The Input

There will be 4 inputs (M, P, C, D<100) in each line according to above description.

 

The Output

For each line of output print the area of the farm field and how many days Ramij will work initially.

 

Sample Input

120 85 2 40

 

Sample Output

6 720

 

 

 

 

Problem Setter: Parag Paul