a, b = map(int,input().split()) print(a,b) if b%a == 0: print(int(b/a)) else: print("NO")