N = int(input().strip()) a = sum([int(i) for i in input().strip().split(' ')]) m = a // (2 * (N - 1)) - N print('{} {}'.format(N - m, m))