n = int(input()) a = list(map(int,input().split())) sum_ashi = sum(a) // (n-1) a = [sum_ashi - i for i in a] print(a.count(2), a.count(4))