a = list(map(int, input().split()))
max_children = min(a)
print(max_children)