l=io.read()f=function(n,s,c)c=l:sub(n,n)n=n+1 t=c>''and{f(n,s)or c==l:sub(n,n)or f(n,s..c)}or print(s)end f(1,'')