UVa 10300 - Ecological Premium

Summary
The number of animals is not needed. Simply sum all the multiplications of the farmyard in square meters by the environment-friendliness and we're done.

Explanation
The number of animals is a red herring that distracts us and is useless. Read the problem carefully again.

= Input == 3 5 1 1 1 2 2 2 3 3 3 2 3 4 8 9 2 3 9 1 8 6 12 1 8 1 1 3 10 30 40 9 8 5 100 1000 70

Output
38 86 7445