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