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