def main(): A, B = map(int, input().split()) if A % B == 0: print("YES") else: print("NO") if __name__ == "__main__": main()