Run ID:86568

提交时间:2024-07-26 17:57:50

n = int(input()) holes = list(map(int,input().split())) eyes = 0 legs = 0 for i in holes: eyes += i*2 legs += i*4 print(legs,eyes)