#Name:  Treeshan Yeadram
#Date:  Oct 1 -2018
#This program in  triangle

s = input("Enter a String: ")

ls = len(s)

for i in range(0,ls-1):
    print(s[0:i])
for i in range(0,ls-1):
    print (s[i:ls])
print("Thank you for using my program")
