15051 Python A1 = int(input()) A2 = int(input()) A3 = int(input()) print(min(A2+A3*2, A1+A3, A1*2+A2)*2)