A,B=map(int,input().split()) print("YES" if A%B==0 else "NO")