a = list(map(int,input().split())) # 1 1 1 1 1 1 1
a.sort()
m = min(a)
print(m)