#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	float p;
	cin>>a>>b>>c;
	p=(a+b+c)/3.0;
	if (p>=90 && a>=86 && b>=86 && c>=86){
		cout<<"good"<<endl;
	}
	else {
		cout<<"sorry"<<endl;
	}
	return 0;
}
/**************************************************************
	Problem: 1657
	User: xiaojingxuan
	Language: C++
	Result: Accepted
	Time:14 ms
	Memory:2072 kb
****************************************************************/