Run ID:86572

提交时间:2024-07-26 18:05:58

m = int(input()) holes = list(map(int,input().split())) eyes = 0 legs = 0 for i in range(m): eyes = eyes+holes[i]*2 legs = legs+holes[i]*4 print(str(legs)+' '+str(eyes))