r=raw_input() for i in range(len(r)):print(r);r=r[-1]+r[:-1]