A,B = map(int, input().split())

print('NO' if A%B else 'YES')