n = int(input()) s = sum(list(map(int, input().split()))) assert s % (n - 1) == 0 s //= n - 1 print(2 * n - s // 2, s // 2 - n)