https://www.acmicpc.net/problem/10817
arr=list(map(int,input().split()))
min=100
count=0
for i in range(3):
if arr[i]<=min:
min=arr[i]
count=i
if count==0: print(arr[1] if arr[1]<=arr[2] else arr[2])
elif count==1: print(arr[0] if arr[0]<=arr[2] else arr[2])
else: print(arr[0] if arr[0]<=arr[1] else arr[1])