a, b, c = map(int, input().split()) x = a + b y = b + c z = c + a print(x + y + z - min(x, y, z) - max(x, y, z))