Run ID:78199

提交时间:2024-06-16 17:02:32

m = int(input()) if m: a = list(map(int, input().split())) print(sum(a) * 4, sum(a) * 2)