var line=readline() var arr=[] var str='' for(let i=0;i<line.length;i++){ arr.unshift(line[i]) } console.log(arr.join(''))