#CCBCHBAHAI0000145. Dương, âm và bằng không (Plus Minus)

Dương, âm và bằng không (Plus Minus)

Plus Minus

Source: HackerRank

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer array A=(a0,a1,…,an−1)A=(a_0,a_1,\ldots,a_{n-1}), let PP, NN, and ZZ be the counts of positive, negative, and zero elements, respectively.

Compute the three ratios P/nP/n, N/nN/n, and Z/nZ/n.

Input

  • The first line contains an integer nn.
  • The second line contains nn integers a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1}.

Output

Print exactly three lines in this order:

  1. the ratio of positive elements;
  2. the ratio of negative elements;
  3. the ratio of zero elements.

Print each value with exactly 66 digits after the decimal point. The judge accepts an absolute or relative error of at most 10−610^{-6}.

Subtasks

Subtask 1 (100 points): 1≤n≤1001\le n\le100 and −100≤ai≤100-100\le a_i\le100.

Examples

Input

6
-4 3 -9 0 4 1

Output

0.500000
0.333333
0.166667

Explanation

There are 33 positive values, 22 negative values, and 11 zero. Their ratios are 3/6=0.53/6=0.5, 2/6≈0.3333332/6\approx0.333333, and 1/6≈0.1666671/6\approx0.166667.