#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the plusMinus function below.
def plusMinus(arr):
    pos, neg, zero = 0, 0, 0
    for item in arr:
        if item>0:
            pos+=1
        elif item<0:
            neg+=1
        else:
            zero+=1
    total = pos+ neg+ zero
    return print(pos/total,'\n',neg/total,'\n',zero/total)

if __name__ == '__main__':
    n = int(input())

    arr = list(map(int, input().rstrip().split()))

    plusMinus(arr)

e1a3ee9b8c76c9e0ec7d86dfdec084b980139ff7
<mask token>

<mask token>


def plusMinus(arr):
    pos, neg, zero = 0, 0, 0
    for item in arr:
        if item > 0:
            pos += 1
        elif item < 0:
            neg += 1
        else:
            zero += 1
    total = pos + neg + zero
    return print(pos / total, '\n', neg / total, '\n', zero / total)


<mask token>

<mask token>


def plusMinus(arr):
    pos, neg, zero = 0, 0, 0
    for item in arr:
        if item > 0:
            pos += 1
        elif item < 0:
            neg += 1
        else:
            zero += 1
    total = pos + neg + zero
    return print(pos / total, '\n', neg / total, '\n', zero / total)


if __name__ == '__main__':
    n = int(input())
    arr = list(map(int, input().rstrip().split()))
    plusMinus(arr)

import math
import os
import random
import re
import sys


def plusMinus(arr):
    pos, neg, zero = 0, 0, 0
    for item in arr:
        if item > 0:
            pos += 1
        elif item < 0:
            neg += 1
        else:
            zero += 1
    total = pos + neg + zero
    return print(pos / total, '\n', neg / total, '\n', zero / total)


if __name__ == '__main__':
    n = int(input())
    arr = list(map(int, input().rstrip().split()))
    plusMinus(arr)

#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the plusMinus function below.
def plusMinus(arr):
    pos, neg, zero = 0, 0, 0
    for item in arr:
        if item>0:
            pos+=1
        elif item<0:
            neg+=1
        else:
            zero+=1
    total = pos+ neg+ zero
    return print(pos/total,'\n',neg/total,'\n',zero/total)

if __name__ == '__main__':
    n = int(input())

    arr = list(map(int, input().rstrip().split()))

    plusMinus(arr)
