#CCBCHBAHAI0000094. Bảng điểm lớp - thống kê miền 0..10

    ID: 1012 Loại: Thông thường 2000ms 256MiB Tried: 0 Đã chấp nhận: 0 Độ khó: 1 Đăng bởi: Nhãn>Programming language basicsStatic arraysIteration techniquesImplementation techniquesWorking with numbersInteger arithmetic

Bảng điểm lớp - thống kê miền 0..10

Class Scores - Statistics on 0..10

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem

Given nn integer scores 0≤ai≤100\le a_i\le10 and a passing threshold 0≤K≤100\le K\le10, compute

$$S=\sum a_i,\quad \mu=S/n,\quad \min a_i,\quad \max a_i,$$

all frequencies f0,…,f10f_0,\ldots,f_{10}, and

P=∣{i∣ai≥K}∣.P=|\{i\mid a_i\ge K\}|.

Print all statistics.

Input

The first line contains nn and KK. The second line contains nn scores in 0..100..10.

Output

Line 1: SS. Line 2: μ\mu to 2 decimals. Line 3: minimum and maximum. Line 4: f0,…,f10f_0,\ldots,f_{10}. Line 5: PP.

Subtask

Subtask 1 (20 points): 1≤n≤101\le n\le10.

Subtask 2 (30 points): 1≤n≤50001\le n\le5000.

Subtask 3 (50 points): 1≤n≤2⋅1051\le n\le2\cdot10^5.

Example

Input

8 5
10 7 5 4 7 0 5 9

Output

47
5.88
0 10
1 0 0 0 1 2 0 2 0 1 1
6

Explanation

The result follows directly from the mathematical definition above.