# Read three integers from input
num1 = int(input())
num2 = int(input())
num3 = int(input())

# Method 1: Using min() function (simplest)
smallest = min(num1, num2, num3)

# Output the smallest value
print(smallest)