n, m = map(int, input().split()) if n * m == 0 or m == -1: print('No') else: print('Yes') print(n * m, m - 1)