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