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