p, q = [int(v) for v in input().split()] print(min(p, q))