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