#CCBCHBAHAI0000171. Phân bố số tai nạn theo 6 khoảng (Accident Distribution in Six Ranges)

    ID: 1089 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 techniquesInteger arithmetic

Phân bố số tai nạn theo 6 khoảng (Accident Distribution in Six Ranges)

Accident Distribution in Six Ranges

Source: Problem Solving and Program Design in C

Version: Phuoc Hung OJ Extended

Problem

You are given nn non-negative integers a1,a2,…,ana_1,a_2,\ldots,a_n. Each value belongs to exactly one of six ranges:

  • bucket 0: 0≤ai≤990\le a_i\le99;
  • bucket 1: 100≤ai≤199100\le a_i\le199;
  • bucket 2: 200≤ai≤299200\le a_i\le299;
  • bucket 3: 300≤ai≤399300\le a_i\le399;
  • bucket 4: 400≤ai≤499400\le a_i\le499;
  • bucket 5: ai≥500a_i\ge500.

For j∈{0,1,2,3,4,5}j\in\{0,1,2,3,4,5\}, let cjc_j be the number of values in bucket jj. Compute c0,c1,…,c5c_0,c_1,\ldots,c_5.

Input

  • The first line contains nn.
  • The second line contains a1,a2,…,ana_1,a_2,\ldots,a_n.

Output

Print c0,c1,…,c5c_0,c_1,\ldots,c_5 separated by spaces.

Subtasks

Subtask 1 (20 points): 1≤n≤1001\le n\le 100 and 0≤ai≤9990\le a_i\le 999.

Subtask 2 (30 points): 1≤n≤100001\le n\le 10000 and 0≤ai≤1000000\le a_i\le 100000.

Subtask 3 (50 points): 1≤n≤1000001\le n\le 100000 and 0≤ai≤10000000000\le a_i\le 1000000000.

Example

Input

8
0 99 100 250 399 400 500 921

Output

2 1 1 1 1 2

Explanation

0 and 99 go to bucket 0; 100 to bucket 1; 250 to bucket 2; 399 to bucket 3; 400 to bucket 4; 500 and 921 to bucket 5.