Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

EISALARY2 - Salary 2

ABC Company calculates the salary of the seasonal staff by hour. Note that working hours over 8 hours(Overtime) is 1.5 times the hourly wage (Wage). Given the working time of 5 days a week and hourly wages. Calculate the salary of employees and the average office hour salary and the average overtime pay.

Input

The first line is the number of employees, no more than 1000

The next n lines, consisting of 5 real numbers, are 5-day working hours and hourly wages

Output

 

The first n lines are the wages of n people
The next line is the average salary per office hour
The bottom line is the average salary per hour overtime.
Numbers are rounded to the 2nd decimal place

The first n lines are the wages of n people

The next line is the average salary per office hour

The bottom line is the average salary per hour overtime.

Numbers are rounded to the 2nd decimal place

 

Example

Input:
3
1 2 3 10 2 5
11.0 0 0 0 0 6.2
1 1 1 1 1 10
Output:
95
77.5
50
6.19
8.58

Added by:Ha Minh Ngoc
Date:2018-11-21
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: GOSU
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.