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