str=input("Enter a string  ")
n=len(str)
if(n<2):
    print("Empty String")
else:
    print (str[0:2]+str[n-2:n])