<filename>11656.py<gh_stars>0
arr = list(input())
dic=[]
n = len(arr)
for i in range(n):
    dic.append(arr[i:])
dic.sort()
for m in dic:
    print(''.join(m))

<filename>11656.py<gh_stars>0
arr = list(input())
dic=[]
n = len(arr)
for i in range(n):
    dic.append(arr[i:])
dic.sort()
for m in dic:
    print(''.join(m))
