import sys
s = list(map(int,sys.stdin.readline().strip().split()))
print(min(s))