def main(): A, B = map(int, input().split()) amari = B%A if amari == 0: print(int(B/A)) else: print("NO")