n = int(input()) l = list(map(int, input().split())) for i in range(n+1): if 2*(n-i) + 4*i == sum(l) // (n-1): print(n-i, i)