strs="" for i in range(1,6): strs+=str(i) if len(strs)>=2: print(strs+strs[::-1][1:len(strs)]) else: print(strs)