def ax_eql_b(a:int,b:int): if b % a == 0: return b // a return "NO" A,B = map(int,input().split()) print(ax_eql_b(A,B))