WOBURN CHALLENGE 1999

Godfather

INPUT FILE: mafia.in
OUTPUT FILE: mafia.out

The powerful Carlo crime family was quite unique among villains. In order for the younger generation to participate in the activities of the family, Don Monty Carlo decreed that they must do well in school (just like US College basketball). [For those of you unfamiliar with crime bosses, the Don is the head of the family]. But alas, the future of the Carlo crime family is threatened by the academic incompetence of the eldest son, Carlos, who is failing Law and Ethics. Don Carlo recognizes the futility of trying to get his son to do better in school and so he opts for a more illegal route (just like US College basketball) and decides to manipulate the bell curve of the class. While the exact details of this nefarious plot of coercion and extortion are irrelevant, it suffices to say that he needs to be able to calculate the area under a bell curve. Since Don Monty Carlo wasn't too good at math, he has "hired" a computer programmer and made him an offer he can't refuse. And being a run-of-the-mill narcissistic thug, he has instructed the programmer to use the Monte Carlo method of area calculation (also known as integration). Oh yeah, did we happen to mention that you are the programmer?

The Monte Carlo method works as follows:

Hints:

INPUT
A series of test cases; for each test case the value of L is given on a line by itself. The number '-1' denotes the end of the input.

OUTPUT
Estimate of the area under f(x) from x=0 to x=L (rounded to 2 decimal places); it has to match our answer to within 0.03.

Note that we will check the text of your program to ensure that you are in fact using the Monte Carlo method. You don't want to cross the Don.

Sample Input

0.0
-1

Output for Sample Input

0.00
Downloader failed! Response object 006~ASP 0159~Buffering Off~Buffering must be on.