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