s=raw_input() i=j=l=len(s) while i: print s[i-1:j];j+=1 if j>l:j=i=i-1