# coding: utf-8 # Here your code ! x,y=[int(i) for i in input().split()] if y % x == 0: print(int(y/x)) else: print("NO")