L=[[1, 2, 3], [5, 3, 2], [7, 3, 2]]
for c in L:
lenght=c[0]
width=c[1]
height=c[2]
s=2*lenght*width+2*lenght*height+2*width*height
print(s)
L = [[1,2,3], [5, 3, 2], [7,3,2]]
N=3
s=0
if N>=1:
for cube in L:
length = cube[0]
width = cube[1]
height = cube[2]
result = length * width * 2 + width * height * 2 + length * height * 2
print(result)
s=s+result
N=N-1
print(s)