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