1. Problem 문제 확인하기 2. Solution s = input() answer = [] for i in range(len(s)): answer.append(s[i:]) answer.sort() for i in answer: print(i)