def fl(n): if len(n)>1: print(n[0],end="") print(n[1],end="") print(n[-2],end="") print(n[-1],end="") else: print("",end="") n=input() fl(n)