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