s = input()
print(s[0] + s[1]*(len(s)*2-4-1) + s[-1])
