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