p, q = list(map(int, input().split(' '))) print(min(p, q))