• + 7 comments

    I felt like cheating too so opened the discussion forum for the first time to see this post :D

    n=float(raw_input())
    numbers=map(int,raw_input().split())
    print round(len([x for x in numbers if x>0])/n,3)
    print round(len([x for x in numbers if x<0])/n,3)
    print round(len([x for x in numbers if x==0])/n,3)