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