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