#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << i << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;
        	if(s == "no")
        		continue;
        	if(s == "worse" || s == "are you serious?" || s == "no way" || s=="go die in a hole" || s == "terrible" || s == "don't even")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		assert( s== "don't think so" || s== "don't touch me!" || s== "not bad" || s== "cool" || s== "great"  );
        		cout << "normal" << endl;
        		fflush(stdout);
        		return 0;
        	}
        }
        	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        int noc = 0;
        int a[10];
        for(int i=0;i<10;i++) a[i] = i;
        srand(time(NULL));
	random_shuffle(a,a+10);
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << a[i] << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;

        	if(s == "no") {
        		noc++;
        		if(noc >= 4)
        		{
        			cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;
        		}
        		continue;
        	}
        	if(s == "worse" || s == "are you serious?" || s == "no way" || s=="go die in a hole" || s == "terrible" || s == "don't even")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		if( s== "don't think so" || s== "don't touch me!" || s== "not bad" || s== "cool" || s== "great"  ){
	        		cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;

        		}
        	}
        }
        	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        int noc = 0;
        int a[10];
        for(int i=0;i<10;i++) a[i] = i;
        srand(time(NULL));
	// random_shuffle(a,a+10);
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << "grumpy" << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;

        	if(s == "no") {
        		noc++;
        		if(noc >= 4)
        		{
        			cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;
        		}
        		continue;
        	}

        	if(s == "Worse" || s == "Are you serious?" || s == "no way" || s=="Go die in a hole" || s == "Terrible" || s == "DON'T EVEN")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		if( s== "don't think so" || s== "don't touch me!" || s== "not bad" || s== "cool" || s== "great!"  ){
	        		cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;

        		}
        	}
        }
	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        int noc = 0;
        int a[10];
        for(int i=0;i<10;i++) a[i] = i;
        srand(time(NULL));
	// random_shuffle(a,a+10);
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << a[i] << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;

        	if(s == "no") {
        		noc++;
        		if(noc >= 4)
        		{
        			cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;
        		}
        		continue;
        	}

        	if(s == "Worse" || s == "Are you serious?" || s == "no way" || s=="Go die in a hole" || s == "Terrible" || s == "DON'T EVEN")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		if( s== "don't think so" || s== "don't touch me!" || s== "not bad" || s== "cool" || s== "great!"  ){
	        		cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;

        		}
        	}
        }
        	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << i << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;
        	if(s == "no") continue;
        	if(s == "worse" || s == "are you serious" || s == "no way" || s=="go die in a hole" || s == "terrible")
        	{
        		cout  << "grumpy" << endl;
        		return 0;
        	}
        	else{
        		cout << "normal" << endl; return 0;
        	}
        }
        if(gl == 0)
        	cout  << "grumpy" << endl;
        else
        	cout << "normal" << endl;

        	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << i << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;
        	if(s == "worse")
        	{
        		gl = 1;
        	}
        }
        if(gl == 0)
        	cout  << "grumpy" << endl;
        else
        	cout << "normal" << endl;

        	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << i << endl;
        	string s;
        	cin >> s;
        	if(s == "worse")
        	{
        		cout  << "grumpy" << endl;
        	}
        }
        cout << "normal" << endl;
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        int noc = 0;
        int a[10];
        for(int i=0;i<10;i++) a[i] = i;
        srand(time(NULL));
	// random_shuffle(a,a+10);
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << "normal" << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;

        	if(s == "no") {
        		noc++;
        		if(noc >= 4)
        		{
        			cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;
        		}
        		continue;
        	}

        	if(s == "Worse" || s == "Are you serious?" || s == "no way" || s=="Go die in a hole" || s == "Terrible" || s == "DON'T EVEN")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		if( s== "don't think so" || s== "don't touch me!" || s== "not bad" || s== "cool" || s== "great!"  ){
	        		cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;

        		}
        	}
        }
	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        int noc = 0;
        int a[10];
        for(int i=0;i<10;i++) a[i] = i;
        srand(time(NULL));
	random_shuffle(a,a+10);
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << a[i] << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;

        	if(s == "no") {
        		noc++;
        		if(noc >= 4)
        		{
        			cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;
        		}
        		continue;
        	}
        	if(s == "worse" || s == "are you serious" || s == "no way" || s=="go die in a hole" || s == "terrible" || s == "don't even")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		if( s== "don't think so" || s== "don't touch me" || s== "not bad" || s== "cool" || s== "great"  ){
	        		cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;

        		}
        	}
        }
        	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        int noc = 0;
        int a[10];
        for(int i=0;i<10;i++) a[i] = i;
        srand(time(NULL));
	random_shuffle(a,a+10);
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << a[i] << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;

        	if(s == "no") {
        		noc++;
        		if(noc >= 4)
        		{
        			cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;
        		}
        		continue;
        	}
        	if(s == "worse" || s == "are you serious?" || s == "no way" || s=="go die in a hole" || s == "terrible" || s == "don't even")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		if( s== "don't think so" || s== "don't touch me!" || s== "not bad" || s== "cool" || s== "great!"  ){
	        		cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;

        		}
        	}
        }
        	fflush(stdout);
        return 0;
}


#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
// #include <unordered_map>
#include <limits.h>
#include <cassert>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
using namespace std;
//////////////////
// Aditya Kumar //
//  BITS H      //
//////////////////
#define mod 1000000007
#define ll long long
#define ss second
#define ff first
// #define endl '\n'
#define FastIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back

#define FOR(i,a,b) for(int i=a;i<b;i++)

int32_t main()
{
        FastIO;
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif
        int gl= 0;
        // string s;
        // cin >> s;
        int noc = 0;
        int a[10];
        for(int i=0;i<10;i++) a[i] = i;
        srand(time(NULL));
	// random_shuffle(a,a+10);
        for(int i = 0 ;i <= 9 ; i++)
        {
        	cout << a[i] << endl;
        	fflush(stdout);
        	string s;
        	cin >> s;

        	if(s == "no") {
        		noc++;
        		if(noc >= 4)
        		{
        			cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;
        		}
        		continue;
        	}

        	if(s == "worse" || s == "are you serious?" || s == "no way" || s=="go die in a hole" || s == "terrible" || s == "DON'T EVEN")
        	{
        		cout  << "grumpy" << endl;
        		fflush(stdout);
        		return 0;
        	}
        	else
        	{
        		if( s== "don't think so" || s== "don't touch me!" || s== "not bad" || s== "cool" || s== "great!"  ){
	        		cout << "normal" << endl;
	        		fflush(stdout);
	        		return 0;

        		}
        	}
        }
	fflush(stdout);
        return 0;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s != "no" ){
			if( s == "great!" || s == "don't think so" || s == "don't touch me" || s == "not bad" || s == "cool" ){
				cout << "normal" << endl;
			}
			else{
				cout << "grumpy" << endl;
			}
		}
	}
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s == "worse" ){
			x = true;
		}
	}
	if( !x ){
		cout << '"' << "normal" << '"' << endl;
		return 0;
	}
	cout << '"' << "normal" << '"' << endl;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s == "worse" ){
			x = true;
		}
	}
	cout << "normal" << endl;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s == "worse" ){
			x = true;
		}
	}
	if( !x ){
		cout <<  "normal" << endl;
		return 0;
	}
	cout << "grumpy" << endl;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s == "worse" ){
			x = true;
		}
	}
	if( !x ){
		cout << '"' << "normal" << '"' << endl;
		return 0;
	}
	cout << '"' << "grumpy" << '"' << endl;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		getline( cin , s );
		if( s != "no" ){
			if( s == "great" || s == "don't think so" || s == "don't touch me" || s == "not bad" || s == "cool" ){
				cout << "normal" << endl;
			}
			else{
				cout << "grumpy" << endl;
			}
		}
	}
}


#include <bits/stdc++.h>

using namespace std;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		string s;
		cout << i;
		cin >> s;
		if( s == "great!" ){
			cout << "normal" << endl;
			return 0;
		}
	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>

using namespace std;

bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		string s;
		cout << i << endl;
		cin >> s;
		if( s == "great!" ){
			x = true;
		}
	}
	if( x ){
		cout <<  "normal" << endl;
		return 0;
	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s != "no" ){
			if( s == "worse" || s == "terrible" || s == "are you serious?" || s == "don'n even" || s == "go die in a hole" || s == "no way"){
				cout << "grumpy" << endl;
			}
			else{
				cout << "normal" << endl;
			}
		}
	}
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s == "worse" ){
			x = true;
		}
	}
	cout << '"' << "grumpy" << '"' << endl;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s == "worse" ){
			x = true;
		}
	}
	cout << "grumpy" << endl;
}


#include <bits/stdc++.h>

using namespace std;

string s;
bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		getline( cin , s );
		if( s != "no" ){
			if( s == "great!" || s == "don't think so" || s == "don't touch me" || s == "not bad" || s == "cool" ){
				cout << "normal" << endl;
			}
			else{
				cout << "grumpy" << endl;
			}
		}
	}
}


#include <bits/stdc++.h>

using namespace std;

bool x = false;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		string s;
		cout << i << endl;
		cin >> s;
		if( s.size() > 3 )
		if( s[ 0 ] == 'c' && s[ 1 ] == 'o' && s[ 2 ] == 'o' && s[ 3 ] == 'l' ){
			x = true;
		}
	}
	if( x ){
		cout <<  "normal" << endl;
		return 0;
	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>

using namespace std;

string s;
int ans;

int main(){
	for( int i = 0 ; i <= 9 ; i++ ){
		cout << i << endl;
		cin >> s;
		if( s == "no" ){
			ans++;
		}
	}
	if( ans == 5 ){
		cout <<  "normal" << endl;
		return 0;
	}
	cout << "grumpy" << endl;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "no"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't think so"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "are you serious?"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "go die in a hole"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
	grumpy++;			//return 0;
		}
		if(s == "worse"){
	grumpy++;			//return 0;
		}
		if(s == "don't even"){
	grumpy++;			//return 0;
		}
		if(s == "terrible"){
	grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
	grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
	grumpy++;			//return 0;
		}
	}
	if(grumpy < normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't think so"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "are you serious?"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "go die in a hole"){
			cout << "grumpy" << endl;
			return 0;
		}

	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 7; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 2; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	//if(grumpy <= normal){
			cout << "grumpy" << endl;
	//}
	//else{
		cout << "normal" << endl;
	//}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
	grumpy++;			//return 0;
		}
		if(s == "worse"){
	grumpy++;			//return 0;
		}
		if(s == "don't even"){
	grumpy++;			//return 0;
		}
		if(s == "terrible"){
	grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
	grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
	grumpy++;			//return 0;
		}
	}
	if(grumpy > normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 5; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}

	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		/*if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't think so"){
			cout << "normal" << endl;
			return 0;
		}*/
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}/*
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "are you serious?"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "go die in a hole"){
			cout << "grumpy" << endl;
			return 0;
		}*/
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 3; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	cout << "grumpy" << endl;/*
	for(int i = 0; i < 10; i++){
		cout << i << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
	}*/
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		if(s == "are you serious?"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}

	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	if(grumpy < normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 1000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	if(grumpy > normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		//if(s == "cool"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "not bad"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "no way"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}

	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	if(grumpy >= normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 6; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal >= grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}

	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 6; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}

	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	//if(grumpy <= normal){
			cout << "grumpy" << endl;
	//}
	//else{
		//cout << "normal" << endl;
		return 0;
	//}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		//if(s == "cool"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	if(grumpy > normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	//if(grumpy <= normal){
			//cout << "grumpy" << endl;
	//}
	//else{
		cout << "normal" << endl;
		return 0;
	//}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "no way"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't think so"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 8; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "no"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't think so"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "are you serious?"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "go die in a hole"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}

	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 1000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	if(grumpy < normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "not bad"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "no way"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	//if(grumpy <= normal){
			cout << "grumpy" << endl;
	//}
	//else{
		//cout << "normal" << endl;
	//}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		//if(s == "not bad"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "go die in a hole"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}

	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	if(grumpy <= normal){
			cout << "grumpy" << endl;
	}
	else{
		cout << "normal" << endl;
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't think so"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "are you serious?"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}

		//if(s == "great!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}

		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		//if(s == "don't touch me!"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		//if(s == "don't think so"){
		//	cout << "normal" << endl;
		//	return 0;
		//}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		//if(s == "worse"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "don't even"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "terrible"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		//if(s == "are you serious?"){
		//	cout << "grumpy" << endl;
		//	return 0;
		//}
		if(s == "go die in a hole"){
			cout << "grumpy" << endl;
			return 0;
		}

	}
	cout << "grumpy" << endl;
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 9; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
		}
		if(s == "great!"){
			normal++;
		}
		if(s == "not bad"){
			normal++;
		}
		if(s == "don't touch me!"){
			normal++;
		}
		if(s == "don't think so"){
			normal++;
		}
		if(s == "no way"){
			grumpy++;
		}
		if(s == "worse"){
			grumpy++;
		}
		if(s == "don't even"){
			grumpy++;
		}
		if(s == "terrible"){
			grumpy++;
		}
		if(s == "are you serious?"){
			grumpy++;
		}
		if(s == "go die in a hole"){
			grumpy++;
		}
	}
	if(normal > grumpy){
		cout << "normal" << endl ;
	}
	else{
		cout << "grumpy" << endl ;
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	cout << "normal" << endl;/*
	for(int i = 0; i < 10; i++){
		cout << i << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
	}*/
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//normal++;/*
	int grumpy = 0;
	int normal = 0;
	for(int i = 0; i < 10; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			normal++;
			//return 0;
		}
		if(s == "great!"){
			normal++;
			//return 0;
		}
		if(s == "not bad"){
			normal++;
			//return 0;
		}
		if(s == "don't touch me!"){
			normal++;
			//return 0;
		}
		if(s == "don't think so"){
			normal++;
			//return 0;
		}
		if(s == "no way"){
			grumpy++;			//return 0;
		}
		if(s == "worse"){
			grumpy++;			//return 0;
		}
		if(s == "don't even"){
			grumpy++;			//return 0;
		}
		if(s == "terrible"){
			grumpy++;			//return 0;
		}
		if(s == "are you serious?"){
			grumpy++;			//return 0;
		}
		if(s == "go die in a hole"){
			grumpy++;			//return 0;
		}
	}
	//if(grumpy <= normal){
			//cout << "grumpy" << endl;
	//}
	//else{
		cout << "normal" << endl;
	//}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	for(int i = 0; i < 10; i++){
		cout << i << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <bits/stdc++.h>
using namespace std;
int main(){
	//cout << "normal" << endl;/*
	for(int i = 0; i < 100000; i++){
		cout << i%10 << endl;
		string s;
		getline(cin,s);
		if(s == "cool"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "great!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "not bad"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't touch me!"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "don't think so"){
			cout << "normal" << endl;
			return 0;
		}
		if(s == "no way"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "worse"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "don't even"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "terrible"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "are you serious?"){
			cout << "grumpy" << endl;
			return 0;
		}
		if(s == "go die in a hole"){
			cout << "grumpy" << endl;
			return 0;
		}
	}
}


#include <iostream>
using namespace std;

int main()
{
  string grumpy[12]={"don't even", "are you serious?", "go die in a hole", "terrible", "worse", "no way", "DON'T EVEN", "Are you serious?", "Go die in a hole", "Terrible", "Worse", "NO"};
  string normal[6]={"great!","don't think so","not bad","don't touch me","cool"};
  for (int g=0;g<=9;g++){
    cout<<g<<endl;
    cout<<flush;
    string s;
    int i;
    getline(cin,s);
    for (i=0;i<12;i++){
      if (grumpy[i]==s){
	cout<<"grumpy"<<endl;
	return 0;
      }
    }
    for (i=0;i<5;i++){
      if (normal[i]==s){
	cout<<"normal"<<endl;
	return 0;
      }
    }
  }
  return 0;
}


#include <iostream>
using namespace std;

int main()
{
  string grumpy[8]={"don't even", "are you serious?", "go die in a hole", "terrible", "worse", "no way"};
  for (int g=0;g<=9;g++){
    cout<<g<<endl;
    cout<<flush;
    string s;
    int i;
    getline(cin,s);
    for (i=0;i<6;i++){
      if (grumpy[i]==s){
	cout<<"grumpy"<<endl;
	return 0;
      }
    }
  }
  cout<<"normal"<<endl;
  return 0;
}


#include <iostream>
using namespace std;

int main()
{
  string grumpy[8]={"don't even", "are you serious?", "go die in a hole", "terrible", "worse", "no way"};
  for (int g=0;g<=9;g++){
    cout<<g<<endl;
    cout<<flush;
    string s;
    int i;
    cin>>s;
    for (i=0;i<6;i++){
      if (grumpy[i]==s)
	break;
    }
    if (i!=6){
      cout<<"grumpy"<<endl;
      return 0;
    }
  }
  cout<<"normal"<<endl;
  return 0;
}


#include <iostream>
using namespace std;

int main()
{
  string grumpy[12]={"don't even", "are you serious?", "go die in a hole", "terrible", "worse", "no way", "DON'T EVEN", "Are you serious?", "Go die in a hole", "Terrible", "Worse"};
  for (int g=0;g<=9;g++){
    cout<<g<<endl;
    cout<<flush;
    string s;
    int i;
    getline(cin,s);
    for (i=0;i<11;i++){
      if (grumpy[i]==s){
	cout<<"grumpy"<<endl;
	return 0;
      }
    }
  }
  cout<<"normal"<<endl;
  return 0;
}


#include <iostream>
using namespace std;

int main()
{
  string grumpy[8]={"don't even", "are you serious?", "go die in a hole", "terrible", "worse", "no way"};
  for (int g=0;g<=9;g++){
    cout<<g<<endl;
    cout<<flush;
    string s;
    int i;
    cin>>s;
    for (i=0;i<6;i++){
      if (grumpy[i]==s)
	break;
    }
    if (i!=7){
      cout<<"grumpy"<<endl;
      return 0;
    }
  }
  cout<<"normal"<<endl;
  return 0;
}


#include<iostream>
using namespace std;
typedef long long ll;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll n;
	cin>>n;
	ll a[n+5]={0};
	ll sum=0;
	for (int i=0; i<n; i++)
	{
		cin>>a[i];
		sum+=a[i];
	}
	if(sum%n)
	{
		cout<<"NO";
		return 0;
	}
	sum/=n;
	ll n2=0;
	ll t=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum)
	{
		t=a[i]-sum;
		break;
	}
	if(t==-1)
	{
		cout<<"YES";
		return 0;
	}
	ll num=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum) {
	if(a[i]-sum!=t and a[i]-sum!=-t)
	{
		cout<<"NO";
		return 0;
	} if(a[i]-sum==t)
	num++; else n2++;
}

if(n2!=num)
{
	cout<<"NO";
	return 0;
}
cout<<"YES";
}


#include<iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;

int main()
{

	ll n;
	cin>>n;
	ll a[n+5]={0};
	for (int i=0; i<n; i++)
	{
		cin>>a[i];
	}
	sort(a,a+n);
	vector<ll> A;
	A.push_back(a[0]);
	for (int i=1; i<n; i++) if(a[i]!=a[i-1]) A.push_back(a[i]);
	if(A.size()==1 or A.size()==2)
	{
		cout<<"YES";
		return 0;
	}
	sort(A.begin(), A.end());
	if(A.size()==3 and A[1]-A[0]==A[2]-A[1])
	{
		cout<<"YES";
		return 0;
	}
	cout<<"NO";
}


#include<iostream>
#include <vector>
using namespace std;
typedef long long ll;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll n;
	cin>>n;
	ll a[n+5]={0};
	ll sum=0;
	for (int i=0; i<n; i++)
	{
		cin>>a[i];
		sum+=a[i];
	}
	if(sum%n)
	{
		cout<<"NO";
		return 0;
	}
	sum/=n;
	ll t=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum)
	{
		t=a[i]-sum;
		break;
	}
	bool c=false;
	vector<ll> A;
	for (int i=0; i<n; i++) if(a[i]!=sum)
	{
		A.push_back(a[i]);
	}
	ll num=0;
	for (int i=0; i<A.size(); i++)
	if(a[i]-sum!=t and a[i]-sum!=-t)
	{
		cout<<"NO";
		return 0;
	}
cout<<"YES";
}


#include<iostream>
using namespace std;
typedef long long ll;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll n;
	cin>>n;
	ll a[n+5]={0};
	ll sum=0;
	for (int i=0; i<n; i++)
	{
		cin>>a[i];
		sum+=a[i];
	}
	if(sum%n)
	{
		cout<<"NO";
		return 0;
	}
	sum/=n;
	ll n2=0;
	ll t=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum)
	{
		t=a[i]-sum;
		break;
	}
	bool c=false;
	for (int i=1; i<n; i++) if(a[i]!=a[0]) c=true;
	if(!c)
	{
		cout<<"YES";
		return 0;
	}

	ll num=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum)
	if(a[i]-sum!=t and a[i]-sum!=-t)
	{
		cout<<"NO";
		return 0;
	}

cout<<"YES";
}


#include<iostream>
using namespace std;
typedef long long ll;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll n;
	cin>>n;
	ll a[n+5]={0};
	ll sum=0;
	for (int i=0; i<n; i++)
	{
		cin>>a[i];
		sum+=a[i];
	}
	if(sum%n)
	{
		cout<<"NO";
		return 0;
	}
	sum/=n;
	ll n2=0;
	ll t=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum)
	{
		t=a[i]-sum;
		break;
	}
	bool c=false;
	for (int i=1; i<n; i++) if(a[i]!=a[0]) c=true;
	if(!c)
	{
		cout<<"YES";
		return 0;
	}

	ll num=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum) {
	if(a[i]-sum!=t and a[i]-sum!=-t)
	{
		cout<<"NO";
		return 0;
	} if(a[i]-sum==t)
	num++; else n2++;
}

if(n2!=num)
{
	cout<<"NO";
	return 0;
}
cout<<"YES";
}


#include<iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;

int main()
{

	ll n;
	cin>>n;
	ll a[n+5]={0};
	for (int i=0; i<n; i++)
	{
		cin>>a[i];
	}
	sort(a,a+n);
	vector<ll> A;
	A.push_back(a[0]);
	for (int i=1; i<n; i++) if(a[i]!=a[i-1]) A.push_back(a[i]);
	if(A.size()==1 or A.size()==2)
	{
		cout<<"YES";
	}
	if(A.size()==3 and A[1]-A[0]==A[2]-A[1])
	{
		cout<<"YES";
		return 0;
	}
	cout<<"NO";
}


#include<iostream>
using namespace std;
typedef long long ll;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll n;
	cin>>n;
	ll a[n+5]={0};
	ll sum=0;
	for (int i=0; i<n; i++)
	{
		cin>>a[i];
		sum+=a[i];
	}
	if(sum%n)
	{
		cout<<"NO";
		return 0;
	}
	sum/=n;
	ll n2=0;
	ll t=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum)
	{
		t=a[i]-sum;
		break;
	}
	if(t==0)
	{
		cout<<"YES";
		return 0;
	}
	ll num=0;
	for (int i=0; i<n; i++)
	if(a[i]!=sum) {
	if(a[i]-sum!=t and a[i]-sum!=-t)
	{
		cout<<"NO";
		return 0;
	} if(a[i]-sum==t)
	num++; else n2++;
}

if(n2!=num)
{
	cout<<"NO";
	return 0;
}
cout<<"YES";
}


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

int main()
{
    int64_t n,i,j,count=0;
    cin>>n;
    int64_t a[n+5],b[5];
    for(i=0,j=0; i<n; i++)cin>>a[i];
    sort(a,a+n);
    for(i=0; i<n; i++){
        if(a[i]!=a[i+1]){
            b[++j]=a[i];
        }
        if(j>3){
            cout<<"NO"<<endl;
            exit(0);
        }
    }
    if(j<3)cout<<"YES"<<endl;
    else{
        if((b[2+0]-b[1+0]) ==b[3]-b[2+0])
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}


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

int main()
{
    int64_t n,i,j,count=0;
    cin>>n;
    int64_t a[n+5],b[5];
    for(i=0,j=0; i<n; i++)cin>>a[i];
    sort(a,a+n);
    for(i=0; i<n; i++){
        if(a[i]!=a[i+1]){
            b[++j]=a[i];
        }
        if(j>3){
            cout<<"NO"<<endl;
            exit(0);
        }
    }
    if(j<3)cout<<"YES"<<endl;
    else{
        if((b[2]-b[1+0]) ==b[3]-b[2+0])
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}


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

int main()
{
    int64_t n,i,j,count=0;
    cin>>n;
    int64_t a[n+5],b[5];
    for(i=0,j=0; i<n; i++)cin>>a[i];
    sort(a,a+n);
    for(i=0; i<n; i++){
        if(a[i]!=a[i+1]){
            b[++j]=a[i];
        }
        if(j>3){
            cout<<"NO"<<endl;
            exit(0);
        }
    }
    if(j<3)cout<<"YES"<<endl;
    else{
        if((b[2]-b[1+0]) ==b[3]-b[2])
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}


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

int main()
{
    int64_t n,i,j,count=0;
    cin>>n;
    int64_t a[n+5],b[5];
    for(i=0,j=0; i<n; i++)cin>>a[i];
    sort(a,a+n);
    for(i=0; i<n; i++){
        if(a[i]!=a[i+1]){
            b[++j]=a[i];
        }
        if(j>3){
            cout<<"NO"<<endl;
            exit(0);
        }
    }
    if(j<3)cout<<"YES"<<endl;
    else{
        if((b[1]+b[2])*2 ==b[3]*2)
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}


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

int main()
{
    int64_t n,i,j,count=0;
    cin>>n;
    int64_t a[n+5],b[5];
    for(i=0,j=0; i<n; i++)cin>>a[i];
    sort(a,a+n);
    for(i=0; i<n; i++){
        if(a[i]!=a[i+1]){
            b[++j]=a[i];
        }
        if(j>3){
            cout<<"NO"<<endl;
            exit(0);
        }
    }
    if(j<3)cout<<"YES"<<endl;
    else{
        if((b[2]-b[1]) ==b[3]-b[2])
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}


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

int main()
{
    int64_t n,i,j,count=0;
    cin>>n;
    int64_t a[n+5],b[5];
    for(i=0,j=0; i<n; i++)cin>>a[i];
    sort(a,a+n);
    for(i=0; i<n; i++){
        if(a[i]!=a[i+1]){
            b[++j]=a[i];
        }
        if(j>3){
            cout<<"NO"<<endl;
        }
    }
    if(j<3)cout<<"YES"<<endl;
    else{
        if((b[1]+b[3])/2 ==b[2])
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}


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

int main()
{
    int64_t n,i,j,count=0;
    cin>>n;
    int64_t a[n+5],b[5];
    for(i=0,j=0; i<n; i++)cin>>a[i];
    sort(a,a+n);
    for(i=0; i<n; i++){
        if(a[i]!=a[i+1]){
            b[++j]=a[i];
        }
        if(j>3){
            cout<<"NO"<<endl;
            exit(0);
        }
    }
    if(j<3)cout<<"YES"<<endl;
    else{
        if((b[1]+b[3])/2 ==b[2])
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}


#include<bits/stdc++.h>
#include<iostream>
#include<stack>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<int, string > is;
typedef pair<string, string > ss;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
#define pb push_back
#define fi first
#define se second
#define rep(i, a, o) \
for (int i = int(a); i <= int(o); i++)
#define Drep(i, a, o) \
for (int i = int(a); i >= int(o); i--)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000
#define MEMSET_INF 127
#define MEMSET_HALF_INF 63
#define MOD 1000000007
#define FC cin.tie(false);cout.tie(false);
#define FF ios_base::sync_with_stdio(false)
#define All(a) (a).begin(), (a).end()
#define MAX 500005
double dis(int x1,int y1,int x2,int y2)
{
    return sqrt((powl((x1-x2),2)) + (powl((y1-y2),2)));
}
bool com(pair< int ,int> x1,pair< int ,int> x2)
{
    if( x1.first == x2.first)
        return x1.second<x2.second;
    else
       return x1.first < x2.first ;
}
/// combination ___ inverse mode_________
const int mod= 1000000007;
ll power(long long int x, long long int m){
	if (m == 0)	return 1;
	ll ans = power(x, m >> 1);
	ans = ans*ans%MOD;
	if (m % 2 == 1)	ans = ans*x%MOD;
	return ans;
}
ll c(int p, int q){
	ll ans = 1, tmp = 1;
	if (2 * q > p)	q = p - q;
	for (int i = p; i >= p- q + 1; i--)
		ans = (ans*i) % MOD;
	for (int i = 1; i <= q; i++)
		tmp = (tmp*i) % MOD;
	ans = ans*power(tmp, MOD - 2) % MOD;
	return ans;
}
int a[101][101];
ll res=0;
   int n , m ,k;
bool ok( int maxx){

   rep ( i , 0, n-1){
     rep( j , 0 , m-1){

            int y = fabs(maxx - a[i][j]);
             if(y%k!=0)
                return false;
            res+= y/k;
     }
   }
    return true;

}
bool f(ll z , ll s){
  ll sum =0 ;
  while(z>0){
    sum  += z%10;
    z/=10;
  }
  if(sum == s)
     return true;
  else
    return false;
}
main(){
    int n ;
    cin>>n;
    int a[n+1];
    rep(i , 0, n -1)
     cin>>a[i];
    sort(a,a+n);
  int x = (a[n-1] + a[0])/2;
   if((a[n-1] + a[0])%2 !=0 ) {cout <<"NO"; return 0;}
  int num = x - a[0];
   rep(i , 0 ,n-1){
     if(a[i] > x)
       a[i]-=num;
     if(a[i] < x)
       a[i]+=num;
   }
   bool d=1;
   rep(i,0,n-1)
    {
       if(a[i]!=a[0]){
        d=0; break;
       }

    }
    if(d) cout <<"YES";
    else cout <<"NO";

}


#include<bits/stdc++.h>
#include<iostream>
#include<stack>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<int, string > is;
typedef pair<string, string > ss;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
#define pb push_back
#define fi first
#define se second
#define rep(i, a, o) \
for (int i = int(a); i <= int(o); i++)
#define Drep(i, a, o) \
for (int i = int(a); i >= int(o); i--)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000
#define MEMSET_INF 127
#define MEMSET_HALF_INF 63
#define MOD 1000000007
#define FC cin.tie(false);cout.tie(false);
#define FF ios_base::sync_with_stdio(false)
#define All(a) (a).begin(), (a).end()
#define MAX 500005
double dis(int x1,int y1,int x2,int y2)
{
    return sqrt((powl((x1-x2),2)) + (powl((y1-y2),2)));
}
bool com(pair< int ,int> x1,pair< int ,int> x2){
    if( x1.first == x2.first)
        return x1.second<x2.second;
    else
       return x1.first<x2.first ;
}
map<string  , int > mp;
/*main(){
   int q;
  // cout <<log10(110)+1;
   //cout <<powl(2,18);
   cin>>q;
   vector <ll> v;
   rep( i ,  0 , q-1){
      char c; string s;
      cin>>c>>s;
      if(c=='+'){
          rep( i , 0 ,s.length()-1)
             {
                 if((s[i]-'0')%2 == 0 )
                    s[i]='0';
                 else
                    s[i]='1';
             }
              string r;
          rep( i , 0, s.length()-1 )
             {
                r+=s[i];
                mp[r]++;
             }
      }
      if(c=='-'){
            rep( i , 0 ,s.length()-1)
             {
                 if((s[i]-'0')%2 == 0 )
                    s[i]='0';
                 else
                    s[i]='1';
             }
              string r;
          rep( i , 0, s.length()-1 )
             {
                r+=s[i];
                mp[r]--;
             }
      }
      if(c=='?'){
       cout <<mp[s]<<endl;
      }

   }

}*/
queue<int>que;
int main()
{
  int n;
    cin>>n;
    int a[n+1];
    rep(i,0,n-1)
    cin>>a[i];
    sort(a,a+n);
    int sum2=0;
    int sum1=0;
    int minn=a[0];
    int maxx=a[n-1];
    if(minn==maxx)
    {
        cout<<"YES";
        return 0;
        }
    rep(i,0,n-1)
    {
        if(a[i]==minn)
        sum1++;
        else if(a[i]==maxx)
        sum2++;
        else
        {
            if(que.empty())
            que.push(a[i]);
            else if(a[i]!=que.front())
            que.push(a[i]);
        }
    }
    if(sum1+sum2==n)
    {
        cout << "YES";
    }
    else
    {
        if(que.size()==1)
        {
            if(que.front()-minn==maxx-que.front())
            cout <<"YES";
            else
            cout <<"NO";
        }
        else
        cout<<"NO";

    }

    }


#include<bits/stdc++.h>
#include<iostream>
#include<stack>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<int, string > is;
typedef pair<string, string > ss;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
#define pb push_back
#define fi first
#define se second
#define rep(i, a, o) \
for (int i = int(a); i <= int(o); i++)
#define Drep(i, a, o) \
for (int i = int(a); i >= int(o); i--)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000
#define MEMSET_INF 127
#define MEMSET_HALF_INF 63
#define MOD 1000000007
#define FC cin.tie(false);cout.tie(false);
#define FF ios_base::sync_with_stdio(false)
#define All(a) (a).begin(), (a).end()
#define MAX 500005
double dis(int x1,int y1,int x2,int y2)
{
    return sqrt((powl((x1-x2),2)) + (powl((y1-y2),2)));
}
bool com(pair< int ,int> x1,pair< int ,int> x2)
{
    if( x1.first == x2.first)
        return x1.second<x2.second;
    else
       return x1.first < x2.first ;
}
/// combination ___ inverse mode_________
const int mod= 1000000007;
ll power(long long int x, long long int m){
	if (m == 0)	return 1;
	ll ans = power(x, m >> 1);
	ans = ans*ans%MOD;
	if (m % 2 == 1)	ans = ans*x%MOD;
	return ans;
}
ll c(int p, int q){
	ll ans = 1, tmp = 1;
	if (2 * q > p)	q = p - q;
	for (int i = p; i >= p- q + 1; i--)
		ans = (ans*i) % MOD;
	for (int i = 1; i <= q; i++)
		tmp = (tmp*i) % MOD;
	ans = ans*power(tmp, MOD - 2) % MOD;
	return ans;
}
int a[101][101];
ll res=0;
   int n , m ,k;
bool ok( int maxx){

   rep ( i , 0, n-1){
     rep( j , 0 , m-1){

            int y = fabs(maxx - a[i][j]);
             if(y%k!=0)
                return false;
            res+= y/k;
     }
   }
    return true;

}
bool f(ll z , ll s){
  ll sum =0 ;
  while(z>0){
    sum  += z%10;
    z/=10;
  }
  if(sum == s)
     return true;
  else
    return false;
}
main(){
    int n ;
    cin>>n;
    int a[n+1];
    rep(i , 0, n -1)
     cin>>a[i];
    sort(a,a+n);
  int x = (a[n-1] + a[0])/2;
   if((a[n-1] + a[0])%2 ! =0 ) {cout <<"NO"; return 0;}
  int num = x - a[0];
   rep(i , 0 ,n-1){
     if(a[i] > x)
       a[i]-=num;
     if(a[i] < x)
       a[i]+=num;
   }
   bool d=1;
   rep(i,0,n-1)
    {
       if(a[i]!=a[0]){
        d=0; break;
       }

    }
    if(d) cout <<"YES";
    else cout <<"NO";

}


#include<bits/stdc++.h>
#include<iostream>
#include<stack>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<int, string > is;
typedef pair<string, string > ss;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
#define pb push_back
#define fi first
#define se second
#define rep(i, a, o) \
for (int i = int(a); i <= int(o); i++)
#define Drep(i, a, o) \
for (int i = int(a); i >= int(o); i--)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000
#define MEMSET_INF 127
#define MEMSET_HALF_INF 63
#define MOD 1000000007
#define FC cin.tie(false);cout.tie(false);
#define FF ios_base::sync_with_stdio(false)
#define All(a) (a).begin(), (a).end()
#define MAX 500005
double dis(int x1,int y1,int x2,int y2)
{
    return sqrt((powl((x1-x2),2)) + (powl((y1-y2),2)));
}
bool com(pair< int ,int> x1,pair< int ,int> x2){
    if( x1.first == x2.first)
        return x1.second<x2.second;
    else
       return x1.first<x2.first ;
}
main(){

    int n;
    cin>>n;
    int a[n+1];
    rep(i,0,n-1)
    cin>>a[i];
    sort(a,a+n);
    bool ok=0;
    int x=0,m=-1;

    rep(i,0,n/2 -1){
       if(a[n-1-i]-a[i] !=0  ){
           if((a[n-1-i]-a[i])%2 == 0){
             x=(a[n-1-i]-a[i])/2;
              a[i]+=x;
              a[n-i-1]-=x;

           }
          // cout <<m<<" "<<x<<endl;
           if(m!=-1 && m!=x){
            cout <<"NO";
            return 0;
           }
           if(m==-1)
             m=x;

       }

    }

           if(m!=-1 && m!=x){
            cout <<"NO";
            return 0;
           }
    rep(i,1,n-1)
     if(a[i]!=a[i-1])
     {
        cout <<"NO";
            return 0;
     }
     cout <<"YES";
}


#include<bits/stdc++.h>
#include<iostream>
#include<stack>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<int, string > is;
typedef pair<string, string > ss;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
#define pb push_back
#define fi first
#define se second
#define rep(i, a, o) \
for (int i = int(a); i <= int(o); i++)
#define Drep(i, a, o) \
for (int i = int(a); i >= int(o); i--)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000
#define MEMSET_INF 127
#define MEMSET_HALF_INF 63
#define MOD 1000000007
#define FC cin.tie(false);cout.tie(false);
#define FF ios_base::sync_with_stdio(false)
#define All(a) (a).begin(), (a).end()
#define MAX 500005
double dis(int x1,int y1,int x2,int y2)
{
    return sqrt((powl((x1-x2),2)) + (powl((y1-y2),2)));
}
bool com(pair< int ,int> x1,pair< int ,int> x2){
    if( x1.first == x2.first)
        return x1.second<x2.second;
    else
       return x1.first<x2.first ;
}
map<string  , int > mp;
/*main(){
   int q;
  // cout <<log10(110)+1;
   //cout <<powl(2,18);
   cin>>q;
   vector <ll> v;
   rep( i ,  0 , q-1){
      char c; string s;
      cin>>c>>s;
      if(c=='+'){
          rep( i , 0 ,s.length()-1)
             {
                 if((s[i]-'0')%2 == 0 )
                    s[i]='0';
                 else
                    s[i]='1';
             }
              string r;
          rep( i , 0, s.length()-1 )
             {
                r+=s[i];
                mp[r]++;
             }
      }
      if(c=='-'){
            rep( i , 0 ,s.length()-1)
             {
                 if((s[i]-'0')%2 == 0 )
                    s[i]='0';
                 else
                    s[i]='1';
             }
              string r;
          rep( i , 0, s.length()-1 )
             {
                r+=s[i];
                mp[r]--;
             }
      }
      if(c=='?'){
       cout <<mp[s]<<endl;
      }

   }

}*/
main(){

    int n;
    cin>>n;
    int a[n+1];
    rep(i,0,n-1)
    cin>>a[i];
    sort(a,a+n);
    bool ok=0;
    int x=0,m=-1;
     if( n== 2) { cout <<"YES"; return 0;}
    rep(i,0,n/2 -1){
       if(a[n-1-i]-a[i] !=0  ){
           if((a[n-1-i]-a[i])%2 == 0){
             x=(a[n-1-i]-a[i])/2;
              a[i]+=x;
              a[n-i-1]-=x;

           }
          // cout <<m<<" "<<x<<endl;
           if(m!=-1 && m!=x){
            cout <<"NO";
            return 0;
           }
           if(m==-1)
             m=x;

       }

    }

           if(m!=-1 && m!=x){
            cout <<"NO";
            return 0;
           }
    rep(i,1,n-1)
     if(a[i]!=a[i-1])
     {
        cout <<"NO";
            return 0;
     }
     cout <<"YES";
}


#include<bits/stdc++.h>
#include<iostream>
#include<stack>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<int, string > is;
typedef pair<string, string > ss;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
#define pb push_back
#define fi first
#define se second
#define rep(i, a, o) \
for (int i = int(a); i <= int(o); i++)
#define Drep(i, a, o) \
for (int i = int(a); i >= int(o); i--)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000
#define MEMSET_INF 127
#define MEMSET_HALF_INF 63
#define MOD 1000000007
#define FC cin.tie(false);cout.tie(false);
#define FF ios_base::sync_with_stdio(false)
#define All(a) (a).begin(), (a).end()
#define MAX 500005
double dis(int x1,int y1,int x2,int y2)
{
    return sqrt((powl((x1-x2),2)) + (powl((y1-y2),2)));
}
bool com(pair< int ,int> x1,pair< int ,int> x2)
{
    if( x1.first == x2.first)
        return x1.second<x2.second;
    else
       return x1.first < x2.first ;
}
/// combination ___ inverse mode_________
const int mod= 1000000007;
ll power(long long int x, long long int m){
	if (m == 0)	return 1;
	ll ans = power(x, m >> 1);
	ans = ans*ans%MOD;
	if (m % 2 == 1)	ans = ans*x%MOD;
	return ans;
}
ll c(int p, int q){
	ll ans = 1, tmp = 1;
	if (2 * q > p)	q = p - q;
	for (int i = p; i >= p- q + 1; i--)
		ans = (ans*i) % MOD;
	for (int i = 1; i <= q; i++)
		tmp = (tmp*i) % MOD;
	ans = ans*power(tmp, MOD - 2) % MOD;
	return ans;
}
int a[101][101];
ll res=0;
   int n , m ,k;
bool ok( int maxx){

   rep ( i , 0, n-1){
     rep( j , 0 , m-1){

            int y = fabs(maxx - a[i][j]);
             if(y%k!=0)
                return false;
            res+= y/k;
     }
   }
    return true;

}
bool f(ll z , ll s){
  ll sum =0 ;
  while(z>0){
    sum  += z%10;
    z/=10;
  }
  if(sum == s)
     return true;
  else
    return false;
}
main(){
    int n ;
    cin>>n;
    int a[n+1];
    rep(i , 0, n -1)
     cin>>a[i];
    sort(a,a+n);
  int x = (a[n-1] + a[0])/2;
  int num = x - a[0];
   rep(i , 0 ,n-1){
     if(a[i] > x)
       a[i]-=num;
     if(a[i] < x)
       a[i]+=num;
   }
   bool d=1;
   rep(i,0,n-1)
    {
       if(a[i]!=a[0]){
        d=0; break;
       }

    }
    if(d) cout <<"YES";
    else cout <<"NO";

}


/*
Name : Mohit Khare
B.Tech 2nd Year
Computer Science and Engineering
MNNIT Allahabad
*/
#include <bits/stdc++.h>
using namespace std;
#define F(i,a,b) for(int i = (int)(a); i < (int)(b); i++)
#define RF(i,a,b) for(int i = (int)(a); i > (int)(b); i--)
#define ll long long int
#define ull unsigned long long int
#define pii pair < int , int >
#define pb push_back
#define mp make_pair
#define mod 1000000007
int main()
{
	//freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
	int n;
	cin>>n;
	ll arr[n],sumr=0,suml=0;
	for(int i = 0;i<n;i++)
	cin>>arr[i];
	sort(arr,arr+n);
	ll a=arr[0],b,c;
	ll hash[3];
	hash[0]=10000000000,hash[1]=10000000000,hash[2]=10000000000;
	hash[0]=arr[0];
	int f=0;
	for(int i = 1;i<n;i++)
	{
		if(hash[0]==arr[i]) continue;
		else if(hash[1]==10000000000)
		{
			hash[1]=arr[i];
		}
		else if(hash[1]==arr[i]) continue;
		else if(hash[2]==10000000000)
			hash[2]=arr[i];
		else if(hash[2]==arr[i])
			continue;
		else
			f=1;
	}
	for(int i = 0;i<n;i++)
	{
	}
	sort(hash,hash+3);
	if(f==1)
	{
		cout<<"NO"<<endl;
		return 0;
	}
	if(hash[2]==10000000000)
		cout<<"YES"<<endl;
	else if(hash[1]==10000000000)
		cout<<"YES"<<endl;
	else if((abs(hash[0]-hash[1]))==(abs(hash[1]-hash[2])))
		cout<<"YES"<<endl;
	else cout<<"NO"<<endl;

	return 0;
}


/*
Name : Mohit Khare
B.Tech 2nd Year
Computer Science and Engineering
MNNIT Allahabad
*/
#include <bits/stdc++.h>
using namespace std;
#define F(i,a,b) for(int i = (int)(a); i < (int)(b); i++)
#define RF(i,a,b) for(int i = (int)(a); i > (int)(b); i--)
#define ll long long int
#define ull unsigned long long int
#define pii pair < int , int >
#define pb push_back
#define mp make_pair
#define mod 1000000007
int main()
{
	//freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
	int n;
	cin>>n;
	ll arr[n],sumr=0,suml=0;
	for(int i = 0;i<n;i++)
	cin>>arr[i];
	sort(arr,arr+n);
	ll a=arr[0],b,c;
	ll hash[3];
	hash[0]=10000000000,hash[1]=10000000000,hash[2]=10000000000;
	hash[0]=arr[0];
	for(int i = 1;i<n;i++)
	{
		if(hash[0]==arr[i]) continue;
		else if(hash[1]==10000000000)
		{
			hash[1]=arr[i];
		}
		else if(hash[1]==arr[i]) continue;
		else if(hash[2]==10000000000)
			hash[2]=arr[i];
		else if(hash[i]==arr[i])
			continue;
	}
	sort(hash,hash+3);
	if(hash[2]==10000000000)
		cout<<"YES"<<endl;
	if(hash[1]==10000000000)
		cout<<"YES"<<endl;
	if((abs(hash[0]-hash[1]))==(abs(hash[1]-hash[2])))
		cout<<"YES"<<endl;
	else cout<<"NO"<<endl;

	return 0;
}


/*
Name : Mohit Khare
B.Tech 2nd Year
Computer Science and Engineering
MNNIT Allahabad
*/
#include <bits/stdc++.h>
using namespace std;
#define F(i,a,b) for(int i = (int)(a); i < (int)(b); i++)
#define RF(i,a,b) for(int i = (int)(a); i > (int)(b); i--)
#define ll long long int
#define ull unsigned long long int
#define pii pair < int , int >
#define pb push_back
#define mp make_pair
#define mod 1000000007
int main()
{
	//freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
	int n;
	cin>>n;
	ll arr[n],sumr=0,suml=0;
	for(int i = 0;i<n;i++)
	cin>>arr[i];
	sort(arr,arr+n);
	ll a=arr[0],b,c;
	ll hash[3];
	hash[0]=10000000000,hash[1]=10000000000,hash[2]=10000000000;
	hash[0]=arr[0];
	for(int i = 1;i<n;i++)
	{
		if(hash[0]==arr[i]) continue;
		else if(hash[1]==10000000000)
		{
			hash[1]=arr[i];
		}
		else if(hash[1]==arr[i]) continue;
		else if(hash[2]==10000000000)
			hash[2]=arr[i];
		else if(hash[i]==arr[i])
			continue;
	}
	sort(hash,hash+3);
	if(hash[2]==10000000000)
		cout<<"YES"<<endl;
	else if(hash[1]==10000000000)
		cout<<"YES"<<endl;
	else if((abs(hash[0]-hash[1]))==(abs(hash[1]-hash[2])))
		cout<<"YES"<<endl;
	else cout<<"NO"<<endl;

	return 0;
}


/*
Name : Mohit Khare
B.Tech 2nd Year
Computer Science and Engineering
MNNIT Allahabad
*/
#include <bits/stdc++.h>
using namespace std;
#define F(i,a,b) for(int i = (int)(a); i < (int)(b); i++)
#define RF(i,a,b) for(int i = (int)(a); i > (int)(b); i--)
#define ll long long int
#define ull unsigned long long int
#define pii pair < int , int >
#define pb push_back
#define mp make_pair
#define mod 1000000007
int main()
{
	//freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
	int n;
	cin>>n;
	ll arr[n],sum=0,diff[n];
	memset(diff,0,sizeof(diff));
	for(int i = 0;i<n;i++)
	{
		cin>>arr[i];
		sum+=arr[i];
	}
	int mid = (n/2+n%2-1);
	ll avg = sum/n;
	sort(arr,arr+n);
	int f=0;
	for(int i = 0;i<n;i++)
	{
		diff[i] = abs(arr[mid] - arr[i]);
	}
	for(int i = 1;i<n;i++)
	{

		if((diff[i]==diff[i-1]) || diff[i]==0 || diff[i-1]==0)
		continue;
		else
		{
		f=1;
		break;
		}
	}
	if(f==0)
	cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
	return 0;
}