SP7389 PKD - Rating Hazard

Description

![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP7389/dc3314f31388a0619821dfe584c975ea896d8c1f.png) A very important aspect of web portals is customer reviews. The customers can rate any product in the web portal. Generally, a customer can rate a product from one star to five star. Based on the rating of all the customers the average customer rating for a product is shown. Look at the figure on the left to get a clear idea. For example if three customers rate a product as 3 star, 4 star and 4 star respectively then the average rating will be (3+4+4)/3 = 3.67 (Rounded to two digits after the decimal point). In the figure on the left 847 customers have rated a product and 597, 189, 26, 11 and 24 customers have rated the product as 5 star, 4 star, 3 star, 2 star and 1 star respectively. So the average rating is: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP7389/3cfa2ad40c0c759c7b0289a1cb70912dddf8f642.png) (Rounded to eight digits after the decimal point). Most web portals display the total number of people who have rated the product (As more people rates the product the more reliable the rating is) but do not display the numeric value of the average rating. In the web portal of warzone (A renowned web portal) the total number of customers that have rated a product (In the figure above the total 847 customers have rated the product) and the average rating is stored in two different tables. The average rating is stored, rounded to n (0

Input Format

The input file can contain up to 2000 lines of inputs. Each line contains a non-negative floating- point number v (1

Output Format

For each line of input produce one line of output. This line contains the serial of output followed by an integer T which denotes the minimum number of voter that is required for this average rating.