i=raw_input() a=b='' for c in i: if ci[0]:b+=c else:b=c+b print a+b