# Allison Obourn
# CSC 110, Spring 2018
# Lecture 15

# Prompts the user for a name and then
# outputs that name as a nice border
# starting with the full name, decreasing
# to one character and increasing again to the
# full name. 

def main():
    name = input("Name? ")
    name_border(name)

# takes a string as a parameter and outputs it
# increasing the starting index until it is one
# character long and then starting at the beginngn
# and increasing the stopping index until it is
# full. 
def name_border(name):
    length = len(name)
    for i in range(length):
        print(name[i:])
    for i in range(length):
        print(name[:i + 1])

main()
