#include using namespace std; int a,b,c; int main() { cin>>a>>b>>c; cout<<(a*b+a*c+b*c)*2<