A,B=map(int,input().split()) C=B//A O=str(C) if B/A-C:O='NO' print(O)