var a,b,c,d,e,f,g:longint;
begin
read(a,b,c);
if (a>=86) and (b>=86) and (c>=86) then if (a+b+c) div 3>90 then write('good')
else write('sorry')
else write('sorry');
end.
/**************************************************************
Problem: 1657
User: admin
Language: Pascal
Result: Wrong Answer
****************************************************************/