Time limit exceed why

#include
using namespace std;

int odd(int y){

          int nount = 2;
          while(nount<=y){

          	nount+=2;
          	if(nount>y){
          		nount-=2;
          		break;
          	}
          }
          return nount;

}

int even(int x){

      int     count  = 1;
       while(count<=x){
          	count+=2;
          		if(count>x){
          		count-=2;
          		break;
          	}
          }

          return count;

}

int main(){

 int n;
 cin>>n;
 int a,b;

 for(int i = 1;i<=n;i++){
 	cin>>a>>b;
       int c = even(a);
       int d = odd(b);
       
       if(c>d){
       	cout<<"aayush";
       }

else{
cout<<“harshit”;
}
}

return 0;

}