import std.algorithm, std.array, std.container, std.range; import std.string, std.conv; import std.math, std.bigint, std.bitmanip, std.random; import std.stdio, std.typecons; void main() { auto n = readln.chomp.to!int; auto as = readln.split.map!(to!int).sum; auto s = as / (n - 1); writeln(2 * n - s / 2, " ", s / 2 - n); }