➽ Problem:-

https://www.hackerrank.com/challenges/plus-minus/problem

➽ Solution:-

import math

import os

import random

import re

import sys

 

N = float(input())

arr = [int(x) for x in input().split()]

 

count1 = 0

count2 = 0

count3 = 0

 

for x in arr:

    if x > 0:

        count1 += 1

    elif x < 0:

        count2 += 1

    else:

        count3 += 1

       

print(round(count1/len(arr),6))

print(round(count2/len(arr),6))

print(round(count3/len(arr),6))