Help me in solving FANCY problem

My issue

plz debugging my code and also tell which part i have not mention or left.

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	 ios_base::sync_with_stdio(0);
    cin.tie(0);
	int t;
	cin>>t;
	while(t--){
	    string s;
	    int c1=0;
	    getline(cin,s);
	     for(int i=0;i<s.length();i++){
	       
	         if(s[i]=='n' && s[i+1]=='o'  && s[i+2]=='t' )  {
	              
           
                if( (i==0 || s[i-1]==' ') && (s[i+3]==' ' || i==s.length()-3) )
                c1=1;
           
	         }
	             
	        
	     }
	    if(c1==1 ) cout<<"Real Fancy"<<endl;
	    else cout<<"Regularly fancy"<<endl;
	}
	return 0;
}

Problem Link: FANCY Problem - CodeChef