#include using namespace std; #define ALL(x) begin(x),end(x) #define rep(i,n) for(int i=0;i<(n);i++) #define debug(v) cout<<#v<<":";for(auto x:v){cout<bool chmax(T &a,const T &b){if(abool chmin(T &a,const T &b){if(b ostream &operator<<(ostream &os,const vector&v){ for(int i=0;i<(int)v.size();i++) os< istream &operator>>(istream &is,vector&v){ for(T &x:v)is>>x; return is; } signed main(){ ll n,k;cin>>n>>k; vector a(k); cin>>a; auto exp=[&](){ vector check(n+10,true); rep(i,k) check[a[i]]=false; for(int i=1;i<=n;i++){ cout<<(check[i]?"o":"x")<<" "; } cout<0;i--){ rep(j,6){ int x=j+1; if(!check[i+x] and !check[i+7-x]){ check[i]=false; } } } for(int i=1;i<=n;i++){ cout<<(check[i]?"o":"x")<<" "; } cout<20){ cout<<"No"< check(40,true); rep(i,k){ if(a[i]<=30) check[a[i]]=false; } for(int i=30;i>0;i--){ rep(j,6){ int x=j+1; int y=7-x; if(!check[i+x] and !check[i+y]) check[i]=false; } } if(check[1]) cout<<"Yes"<