beecrowd | 1217

Getline Two - Fruits

By Neilor Tonin, URI Brazil

Timelimit: 1

Ms. Parcinova, Mangojata's mom, asked to help her to calculate the consumption of fruit in the house and the amount spent per day on these fruits. Mangojata now must to do a program from a table that his mother was using for annotations by almost a year. In this table, Ms. Parcinova noted the amount of days and then the spent money each day with these fruits, considering always one KG of each fruit.


The first line of input contains an integer N (1 ≤ N ≤ 365) indicating the number of test cases that follows. Each test case is composed of two lines. The first line contains a floating point number V (0.10 ≤ V ≤ 20.00) indicating the amount spent on the second line contains the name of each fruit that owns Parcinova bought.


For each test case, print how many kilograms of fruits Ms. Parcinova bought in each day, with corresponding message like following example. At the end, print the average consumption in kg by day with 2 decimal numbers and the average of money spent by day, like following example.

Note.: all letters must be printed in lowercase with exception of "R" of "R$"

Sample Input Sample Output

Mamao Maca Melao
Pera Uva Goiaba

day 1: 3 kg
day 2: 1 kg
day 3: 3 kg
2.33 kg by day
R$ 7.26 by day