input_line = input() Line = input_line.split() Line = [int(s) for s in Line] for a in range(Line[0]): for b in range(Line[1]): if Line[0]%a == 0 : if a % b == 0 : print("YES") print("NO")