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