# Betting tax P48198

Statement

thehtml
If you must play, decide upon three things at the start: the rules of the game, the stakes, and the quitting time. — Chinese Proverb

There is a wide range of betting games available for devoted gamblers. Bookmakers make a living of taking bets on sports and other events at agreed upon odds, always keeping for themselves a fixed percentage of the collected money. Note that they are experienced enough to foresee the amounts of money that will be bet on every result before any actual bet is made, so that odds can be adjusted properly beforehand.

The game procedure is simple: You bet 1\$ on the result of some event, the winner of a football match, for example. If eventually you made the right guess, you receive a certain amount of money depending on the result you bet for. If your guess was wrong, you receive nothing back.

In this problem, you are given the number of possible results n, and the money that you would receive for each of the results. Since you are a smart guy, before making your bet you want to know which is the percentage kept by the bookmaker.

Input

Input consists of several cases. Every case begins with the number n ≥ 2, followed by the money paid for each result (at least one dollar). A case with n = 0 ends the input.

Output

For every case, print which is the percentage kept by the bookmaker with two digits after the decimal point. The input cases have no precision issues. If the bookmaker loses money, print “Stupid!”.

Public test cases
• Input

```2 1.5 2.1
3 2 2 2
3 1 1 1
3 4 4 4
4 3.50 3.80 4.10 4.20
0
```

Output

```12.50
33.33
66.67
Stupid!
2.99
```
• Information
Author
Daniel Rodrigo
Language
English
Official solutions
C++
User solutions
C++