import sys input = sys.stdin.readline N, M = map(int, input().split()) if M==0: print("No") exit() n = N*M m = M-1 print("Yes") print(n, m)