#include <iostream>
using namespace std;

int main() {
   int t,n,a[51],p=0,i;
   cin >> t;
   while(t--){
       cin>>n;
       if(n==1){
           cin>>p;
           if(p%2==1){
               cout << "maomao90" << endl;
           }
           else {
               cout << "errorgorn" << endl;
           }
       }
       else {
           for(i=0;i<n;i++){
           cin >> a[i];
           p=p+a[i];
       }
       if(p%2 == 1){
           cout << "errorgorn" << endl;
       }
       else {
           cout << "maomao90" << endl;
       }
       }
   }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: