N = int(input()) count = map(int,input().split(" ")) sum_of_leg = 0 for i in count: sum_of_leg += i x = 4*N-sum_of_leg//(N-1) print(x//2,N-x//2)