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