Problem A
Fruit Baskets
Marek is a boss of a fruit company and he sometimes has crazy ideas. He wants to introduce a new product – fruit baskets. They will contain all possible combinations of fruits to satisfy different customer needs, but at most one piece of each fruit. He doesn’t want to have small fruit baskets, so all must contain at least 200 grams of fruit.
You have tolerated his crazy ideas before, but you can’t put
up with this one. You realized that the company might end up
with
For simplicity, you may assume that all fruits of the same kind weigh the same. You also know that all fruits weigh at least 50 grams.
Input
The first line of input contains an integer
Output
Output one line with one integer – the total weight of all fruit in the baskets that have at least 200 grams of fruit.
Sample Input 1 | Sample Output 1 |
---|---|
4 50 60 70 120 |
1020 |