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