a,b = map(int,input().split()) md = [] while True: if a