n = input().split()
c = int(n[0])
m = int(n[1])
e = int(n[2])
a = (c + m + e) / 3
if a >= 90 and c >= 86 and m >= 86 and e >= 86:
    print('good')
else:
    print('sorry')
/**************************************************************
	Problem: 1657
	User: admin
	Language: Python
	Result: Accepted
	Time:207 ms
	Memory:34480 kb
****************************************************************/