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