from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline p,q = map(int,input().split()) print(min(p,q))