Given a lowercase string, print all of its suffixes in lexicographic order, one per line.
The suffix array of a string SSS is the array that holds every suffix of SSS in lexicographic order.
The string banana has 6 suffixes: banana, anana, nana, ana, na, a. Sorted lexicographically they are a, ana, anana, banana, na, nana.
Given a string SSS, print all of its suffixes in lexicographic order.
The first line contains the string SSS. It consists of lowercase English letters only, and its length satisfies 1≤∣S∣≤10001 \le |S| \le 10001≤∣S∣≤1000.
Starting from the first line, print the suffixes of SSS in lexicographic order, one per line.