# No.485 方程式のお勉強 a, b = [int(i) for i in input().split()] print(b // a if b % a == 0 else 'NO')