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