#include using namespace std; //#define int long long #define REP(i,m,n) for(int i=(m);i<(n);i++) #define rep(i,n) REP(i,0,n) #define pb push_back #define all(a) a.begin(),a.end() #define rall(c) (c).rbegin(),(c).rend() #define mp make_pair #define endl '\n' #define vec vector #define mat vector > #define fi first #define se second typedef long long ll; typedef unsigned long long ull; typedef pair pll; typedef long double ld; typedef complex comp; const ll INF=1e9+7; const ll MOD=998244353; const int MAX=200010; signed main(){ cin.tie(0); ios::sync_with_stdio(false); ll k,x;cin>>k>>x; vectorbeki(41); beki[0]=1; REP(i,1,41){ beki[i]=beki[i-1]*2LL; } if(x==0){ cout<<"Yes"<res(0); if(ans==1){ cout<<1<res(0); res.pb(k); res.pb(0); res.pb(0); if(ans==21){ res.pb(k); ans--; } ans-=2; ll mi=0; while(((1LL<