a,b,c = map(int,input().split())
print(2*(a*b+b*c+a*c),'\n',a*b*c,sep='')

sep=" 删除默认缩进

'\n'换行输出