n = int(input())

for i in range(0,n):
    num = int(input())
    if num == 88: print('Hello')
    elif num == 86: print('How are you?')
    elif num < 88: print('GREAT!')
    elif num > 88: print('Bye.')