"""
Method 1

"""

import sys
input = sys.stdin.readline

s = input().rstrip()
ans = []
for i in range(len(s)):
    ans.append(s[i:])
ans.sort()
print('\n'.join(ans))


2e160b023411157e96a6e6b76cea49b9c7db005e
<mask token>

<mask token>
for i in range(len(s)):
    ans.append(s[i:])
ans.sort()
print('\n'.join(ans))

<mask token>
input = sys.stdin.readline
s = input().rstrip()
ans = []
for i in range(len(s)):
    ans.append(s[i:])
ans.sort()
print('\n'.join(ans))

<mask token>
import sys
input = sys.stdin.readline
s = input().rstrip()
ans = []
for i in range(len(s)):
    ans.append(s[i:])
ans.sort()
print('\n'.join(ans))

"""
Method 1

"""

import sys
input = sys.stdin.readline

s = input().rstrip()
ans = []
for i in range(len(s)):
    ans.append(s[i:])
ans.sort()
print('\n'.join(ans))

