//#include<iostream>
#include<cstdio>
//#include<algorithm>
//#include<cmath>
//#include<string.h>
using namespace std;
int main()
{
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a>=80 && (b>=80 || c>=90) && d<=360)
printf("good good good");
else
printf("sorry");
return 0;
}