Today brush to 1012, and this problem is he just really do make life difficult test points 7-8. Finally do come out,
Given to a series of positive integers, press the demand for digital classification, and outputs the following five numbers:
- A . 1 = 5 be divisible numbers and even numbers;
- A 2 = 5 is more than 1 after the digital addition is performed in the order given staggered sum, i.e. calculating n- 1 - n- 2 + n- . 3 - n- . 4 ⋯ ;
- A . 3 = 5 is more than the number of the other the number 2;
- A . 4 = 5 Mean is other than 3 after the numbers to the nearest decimal place;
- A 5 = more than the maximum number of the number 4 after 5 addition.
Input formats:
Each input comprises a test. Each test case is given a first positive integer of not more than 1000 N, and then gives the N does not exceed 1000 to be classified positive integer. Between numbers separated by a space.
Output formats:
For a given N positive integers, is calculated by the subject of the request A . 1 ~ A . 5 and the output order in a row. Between numbers separated by spaces, but the end of the line may not have the extra space.
If a certain type wherein the number does not exist, the output in the corresponding position N
.
Sample Input 1:
13 1 2 3 4 5 6 7 8 9 10 20 16 18
Output Sample 1:
30 11 2 9.7 9
Sample Input 2:
8 1 2 4 5 6 7 9 16
Output Sample 2:
N 11 2 N 9