a, b = map(int, input().split()) print('NO' if a % b else 'YES')