ll@n,a[n+1]{},b[]{1},@k,c[n+1+k]{},@m; rep(m){ ll@x; a[x]=1; } ll@o; rep(o){ ll@x; b[x]=1; } c[n]=1; rrep(i,n){ if(!a[i]&&(c[i+1]||i+k<=n&&c[i+k])){ if(b[i]){ wt("Yes"); exit(0); } c[i]=1; } } wt("No");