def main(): A, B = map(int, input().split()) amari = A%B if amari == 0: print(int(A//B)) else: print("NO") if __name__ == "__main__": # {{{ try: import test test.test() except: main() # }}}