print(min([ int(i) for i in input().split(' ') ]))