#include "autocar.h"
#include<bits/stdc++.h>
using namespace  std;
int main()
{
    int n,q;
    vector<bool> p;
    cin>>n>>q;
    p.resize(n);
    int cv;
    for(int i=0;i<n;i++)
    {
        cin>>cv;
        if(cv==1) p[i]=1;
        else p[i]=0;
    }
    vector<int> aux = init(n,p);
    int k;
    bool atigresit=0;
    for(int i=0;i<q;i++)
    {
        cin>>k;
        pair<int,int> x = solve(n,k,aux);
        bool bun=1;
        if(x.first>x.second || x.first<0 || x.second>=n || (x.second-x.first+1)>=4*k || (x.second-x.first+1)<k)
        {
            bun=0;
        }
        else
        {
            for ( int j = x.first; j <= x.second; j++ )
                if (p[j]==1)
                    bun=0;
        }
        if(!bun)
        {
            atigresit=1;
        }
    }
    if(atigresit)
    {
        cout<<"Hopa, ati gresit. Minus o felie de pizza";
    }
    else
    {
        cout<<"Corect, in sir de lungime "<< (int)aux.size();
    }
    return 0;
}