문제 : https://www.acmicpc.net/problem/11656
import sys
data = sys.stdin.readline().rstrip()
li = []
for i in range(len(data)-1,-1,-1):
li.append(data[i:])
sli = sorted(li)
for suffix in sli:
print(suffix)
data = input()
li = []
for i in range(len(data)):
li.append(data[i:])
for i in sorted(li):
print(i)