import time
while 1==1:
    print("Quick Mode? (y,n)")
    C=input()
    if C=="y":
        print(C)
    elif C=="n":
        print(C)
        print("Wait Time? (Seconds)")
        D=float(input())
    else:
        print("Invalid Input! (Set to Yes)")
        C="y"
    print("Input any number!")
    A=float(input())
    E="Start!"
    B=0
    while E!="a":
        Ar=round((A/2),0)
        print(int(A))
        if Ar!=(A/2):
            #Odd
            A=(A*3)+1
        else:
            #Even
            A=A/2
        B=B+1
        if C=="n":
            time.sleep(D)
        if A==1:
            print("1")
            if C=="n":
                time.sleep(D)
            print("RETREAT INTO 4,2,1 COMPLETE.")
            print("STEPS:",B)
            if C=="n":
                print("press enter to continue loop")
                print("type a and press enter to restart")
                E=input()
            else:
                E="a"
