A, B = [int(i) for i in input().strip().split(' ')] print([B // A, 'NO'][B % A != 0])