n=int(input()) l=input().split(' ') print(l.count("1")) print(l.count("5")) print(l.count("10"))
是count()函数不给用吗?