n = int(input()) l = list(map(int, input().split())) s = sum(l)//(n-1) print(l.count(s-2),l.count(s-4))