while True:
    try:
        n=int(input())
        if n>=140:
            print("Genius")
        else:
            print("fool")
    except:
        break