Farmer John has a pasture of a given length and width. He has a given number of cows on this pasture. Every
Input is to be given in order: length, width,
Example input 1:
5
6
2
1
Example output 1:
15
In the example above, the pasture would have an area of 5 x 6, which is 30 square units. It is given by the last 2 lines of the input that every 2 square units of area can feed 1 cow, so the total amount of cows the pasture can support is 15.
Example input 2:
7
10
7
3
Example output 2:
30
In the example above, the pasture would have an area of 7 x 10, which is 70 square units. It is given by the last 2 lines of input that every 7 square units of area can feed 3 cows, so the total amount of cows the pasture can support is 30.