c = int(input()) a = int(input()) b = int(input()) for d in range(1,a+b+1): for e in range(1,a+b+1): if 2*max(a,b,c+d+e)