K,X=map(int,input().split()) if K==0: X+=1 x=X.bit_length()-1 if (K,X)==(0,1): print("Yes") print(1) print(1) elif X and X==1<