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