a, b = map(int, input().split()) mx, mi = max(a, b), min(a, b) print("Yes" if mx % mi == 0 else "No")