# -*- coding: utf-8 -*- N = input() Alist = map(int, raw_input().split()) Total = sum(Alist) / (N - 1) K = Total / 2 - N T = N - K print T, K