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