intstr = input() intstr_s = intstr.split(" ") big_n = int(intstr_s[0]) small_n = int(intstr_s[1]) result="" if big_n%small_n==0: result="YES" else: result="NO" print(result)