#int(input()) #map(int, input().split()) #list(map(int, input().split())) A = list(map(int, input().split())) print(min(A))