@staticmethod
def a():
    (a, b, c) = map(int, sys.stdin.readline().split())
    print(((((a * b) + (b * c)) + (c * a)) * 2))
@staticmethod
def a():
    (a, b, c) = map(int, sys.stdin.readline().split())
    print(((((a * b) + (b * c)) + (c * a)) * 2))