A, B = map(int, input().split()) print(['NO', 'YES'][A % B == 0])