A, B = map(int,input().split()) C = B // A print(("NO", C)[C*A==B])