#002:买手办
# http://cxsjsxmooc.
a=int(input())
if a%5==0:
    if  a%7==0:
       print('best')
    else:
        print('good')
else:
    print('bad')