N,M=map(int,input().split()) if M==0: print("No") else: print("Yes") print(N*M,M-1)