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