while True:
    print("Welcome! How many people, please?\nEnter 'quit' to end the program.")
    x=input()
    if x == 'quit':
        break
    elif int(x)<=4:
        print('Your small table is reserved!')
    elif 4<int(x)<=6 :
        print('Your middle table is reserved!')
    elif 6<int(x)<=10 :
        print('Your large table is reserved!')
    elif int(x) >10 :
        print('Sorry, there is no free table that seats over ten persons.')