r=raw_input().split() i=0;exec"print' '.join(w[i:]and w or' '*len(w)for w in r).rstrip();i+=1;"*10